mirror of
https://github.com/ceph/ceph
synced 2025-04-11 04:02:04 +00:00
cephx: don't leak Authorizers on each request
It's not clear to me why this is a class member -- it's only written to or read from in this function, which allocates a fresh one each time it's called. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
parent
5d7e4bd58e
commit
d926201434
@ -81,6 +81,7 @@ int CephxClientHandler::build_request(bufferlist& bl)
|
|||||||
if (!authorizer)
|
if (!authorizer)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
bl.claim_append(authorizer->bl);
|
bl.claim_append(authorizer->bl);
|
||||||
|
delete authorizer;
|
||||||
|
|
||||||
CephXServiceTicketRequest req;
|
CephXServiceTicketRequest req;
|
||||||
req.keys = need;
|
req.keys = need;
|
||||||
|
Loading…
Reference in New Issue
Block a user