diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-24 06:51:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:08 -0500 |
commit | f5db8edc97a3dcbbab7a33a41b54fc17902872ea (patch) | |
tree | df18c76200544592d0f5a41a39c1d13a41729f1e /source4/libcli/raw | |
parent | a1ed65e8edd80cff405f91c5ab93f53e3afb2479 (diff) | |
download | samba-f5db8edc97a3dcbbab7a33a41b54fc17902872ea.tar.gz samba-f5db8edc97a3dcbbab7a33a41b54fc17902872ea.tar.bz2 samba-f5db8edc97a3dcbbab7a33a41b54fc17902872ea.zip |
r2587: fixed a couple of authentication memory leaks. There are more to be
fixed - I'll commit a little test suite soon.
(This used to be commit 5b967c1cbb9831f7f2c6c6187f9e8e6dcc284497)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r-- | source4/libcli/raw/clisession.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/raw/clisession.c b/source4/libcli/raw/clisession.c index 2bd2d0e054..264c1cd616 100644 --- a/source4/libcli/raw/clisession.c +++ b/source4/libcli/raw/clisession.c @@ -446,8 +446,8 @@ static NTSTATUS smb_raw_session_setup_generic_spnego(struct smbcli_session *sess } status = gensec_update(session->gensec, mem_ctx, - session->transport->negotiate.secblob, - &s2.spnego.in.secblob); + session->transport->negotiate.secblob, + &s2.spnego.in.secblob); while(1) { if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED) && !NT_STATUS_IS_OK(status)) { @@ -493,6 +493,7 @@ done: parms->generic.out.lanman = s2.spnego.out.lanman; parms->generic.out.domain = s2.spnego.out.domain; } else { + gensec_end(&session->gensec); DEBUG(1, ("Failed to login with %s: %s\n", gensec_get_name_by_oid(chosen_oid), nt_errstr(status))); return status; } |