summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-07 17:52:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:06 -0500
commitb279ee16e982d419c2205a7f790bd9cb8035d6e5 (patch)
tree11579216c57c4982b72fe826d2b6ae2324795a7f /source3/smbd
parent5c286aab366ce2e789dbb2a08fe2218d79d8d88b (diff)
downloadsamba-b279ee16e982d419c2205a7f790bd9cb8035d6e5.tar.gz
samba-b279ee16e982d419c2205a7f790bd9cb8035d6e5.tar.bz2
samba-b279ee16e982d419c2205a7f790bd9cb8035d6e5.zip
r7372: abartet's patch for BUG 2391 (segv caused by free a static pointer)
(This used to be commit 4cda2bd035276bd090bf0fbd4e3b2eff657a80cb)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 48524b472d..6f963fc603 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/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. */