mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
r2590: fixed one of the server security memory leaks. There are more :(
(This used to be commit 9e1eb58e4b332e4a300e8b546a5d39bd2f7cd7a6)
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…
x
Reference in New Issue
Block a user