mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r2590: fixed one of the server security memory leaks. There are more :(
(This used to be commit 9e1eb58e4b
)
This commit is contained in:
parent
8e5acb6df0
commit
7358fb62b8
@ -271,6 +271,10 @@ static NTSTATUS sesssetup_spnego(struct smbsrv_request *req, union smb_sesssetup
|
||||
}
|
||||
} else {
|
||||
status = nt_status_squash(status);
|
||||
if (smb_sess->gensec_ctx &&
|
||||
!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
|
||||
gensec_end(&smb_sess->gensec_ctx);
|
||||
}
|
||||
}
|
||||
|
||||
sess->spnego.out.action = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user