1
0
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:
Andrew Tridgell 2004-09-24 07:08:02 +00:00 committed by Gerald (Jerry) Carter
parent 8e5acb6df0
commit 7358fb62b8

View File

@ -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;