summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-26 02:19:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-26 02:19:44 +0000
commitc26e4057ae1ada769555079738f09f9cea1614b9 (patch)
treedae018059a911e4a86edc56a0628bf668d622b80 /source3/smbd
parent7ff912521a74eaf21411441e4dd7320bc246e882 (diff)
downloadsamba-c26e4057ae1ada769555079738f09f9cea1614b9.tar.gz
samba-c26e4057ae1ada769555079738f09f9cea1614b9.tar.bz2
samba-c26e4057ae1ada769555079738f09f9cea1614b9.zip
Patch by Luca Bolcioni <Luca.Bolcioni@yacme.com>. Ensure we always
initialise the session key. Fixes segfaults with security=server, and encrypt passwords = no. Andrew Bartlett (This used to be commit 493ac5ce98fa3fcddb596139240dd762e70d4ac3)
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 9405c065e1..c42a35e809 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -876,6 +876,8 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
session_key = data_blob(NULL, 16);
SMBsesskeygen_lmv1(server_info->lm_session_key.data, lm_resp.data,
session_key.data);
+ } else {
+ session_key = data_blob(NULL, 0);
}
data_blob_free(&lm_resp);