summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-12-05 10:50:26 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-12-05 10:50:26 +0000
commit3f387d19717c31a2eec265ec790293ece3381094 (patch)
treed54424e5a05f63058f6282cd418453b4e5a6d186
parent410dfc917f3471aec65c43f5ba421062f64496f4 (diff)
downloadsamba-3f387d19717c31a2eec265ec790293ece3381094.tar.gz
samba-3f387d19717c31a2eec265ec790293ece3381094.tar.bz2
samba-3f387d19717c31a2eec265ec790293ece3381094.zip
Ensure we fill in the %U for NTLMSSP connections
(This used to be commit d15ea4fa8e23469f104405c197206e2779461323)
-rw-r--r--source3/smbd/sesssetup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 8e7ee38504..7190caa35b 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -337,7 +337,6 @@ static int reply_spnego_auth(connection_struct *conn, char *inbuf, char *outbuf,
}
SAFE_FREE(workgroup);
- SAFE_FREE(user);
SAFE_FREE(machine);
nt_status = check_password(user_info, ntlmssp_auth_info, &server_info);
@@ -351,12 +350,15 @@ static int reply_spnego_auth(connection_struct *conn, char *inbuf, char *outbuf,
data_blob_free(&nthash);
if (!NT_STATUS_IS_OK(nt_status)) {
+ SAFE_FREE(user);
return ERROR_NT(nt_status_squash(nt_status));
}
sess_vuid = register_vuid(server_info, user);
free_server_info(&server_info);
+
+ SAFE_FREE(user);
if (sess_vuid == -1) {
return ERROR_NT(NT_STATUS_LOGON_FAILURE);