diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-27 05:31:45 -0400 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-28 00:56:02 +0200 |
commit | 606be25ecf4a31cba9f15c43ebc650aecb17e765 (patch) | |
tree | c29aceb4a80f7d08feb9ed71b76af8a1b0068261 /source3/smbd | |
parent | d9cffc01be58184312a6a7b55bd523cf8daefa78 (diff) | |
download | samba-606be25ecf4a31cba9f15c43ebc650aecb17e765.tar.gz samba-606be25ecf4a31cba9f15c43ebc650aecb17e765.tar.bz2 samba-606be25ecf4a31cba9f15c43ebc650aecb17e765.zip |
s3:auth Free sampass as soon as we have server_info
We don't keep sampass in server_info anymore
So it makes no sense to keep it around.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/sesssetup.c | 1 | ||||
-rw-r--r-- | source3/smbd/smb2_sesssetup.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index a561e3a593..9d0c68512c 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -504,6 +504,7 @@ static void reply_spnego_kerberos(struct smb_request *req, DEBUG(10, ("found user %s in passdb, calling " "make_server_info_sam\n", real_username)); ret = make_server_info_sam(&server_info, sampass); + TALLOC_FREE(sampass); } else { /* * User not in passdb, make it up artificially diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index 7ac003fad6..d8972156a1 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -345,6 +345,7 @@ static NTSTATUS smbd_smb2_session_setup_krb5(struct smbd_smb2_session *session, DEBUG(10, ("smb2: found user %s in passdb, calling " "make_server_info_sam\n", real_username)); status = make_server_info_sam(&tmp_server_info, sampass); + TALLOC_FREE(sampass); } else { /* * User not in passdb, make it up artificially |