summaryrefslogtreecommitdiffstats
path: root/source/smbd/sesssetup.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-07 17:52:19 +0000
committerGerald Carter <jerry@samba.org>2005-06-07 17:52:19 +0000
commit78caa233bc319e08b2a6fc595dc836ead2bc2d7b (patch)
tree3120dca4a598c0ffb2a5820271ac9b34ba1b9b89 /source/smbd/sesssetup.c
parent54f161887744234884cae768929259cc3578aab0 (diff)
downloadsamba-78caa233bc319e08b2a6fc595dc836ead2bc2d7b.tar.gz
samba-78caa233bc319e08b2a6fc595dc836ead2bc2d7b.tar.xz
samba-78caa233bc319e08b2a6fc595dc836ead2bc2d7b.zip
r7372: abartet's patch for BUG 2391 (segv caused by free a static pointer)
Diffstat (limited to 'source/smbd/sesssetup.c')
-rw-r--r--source/smbd/sesssetup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c
index 48524b472d2..6f963fc603c 100644
--- a/source/smbd/sesssetup.c
+++ b/source/smbd/sesssetup.c
@@ -267,8 +267,10 @@ static int reply_spnego_kerberos(connection_struct *conn,
SAFE_FREE(client);
data_blob_free(&ap_rep);
data_blob_free(&session_key);
+ passwd_free(&pw);
return ERROR_NT(ret);
}
+ passwd_free(&pw);
/* make_server_info_pw does not set the domain. Without this we end up
* with the local netbios name in substitutions for %D. */