diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-26 02:22:49 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-26 02:22:49 +0000 |
commit | 3e0ecb4561d2af5c61b053d4c0e386172f6a9751 (patch) | |
tree | 3f1c4ef513df1961660a88f2e7a091a4d10b177c /source3 | |
parent | 96faba97233674b6e4e7a86cd99a6fb052ffa055 (diff) | |
download | samba-3e0ecb4561d2af5c61b053d4c0e386172f6a9751.tar.gz samba-3e0ecb4561d2af5c61b053d4c0e386172f6a9751.tar.bz2 samba-3e0ecb4561d2af5c61b053d4c0e386172f6a9751.zip |
(merge from 3.0)
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 b5b6a5937ccb8126876e9ecf9b17cd95f6eec19d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/sesssetup.c | 2 |
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); |