summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-05-21 05:20:54 +0000
committerAndrew Tridgell <tridge@samba.org>2003-05-21 05:20:54 +0000
commitc9d0ee977c929f6a46905ff74cc221aaa028af74 (patch)
tree4b7b1593638f677f89197c5e165d0ea8a3bf0e75 /source3/smbd
parentacf9e7c95c85d2ff499c0205b833a45b47f3fe3b (diff)
downloadsamba-c9d0ee977c929f6a46905ff74cc221aaa028af74.tar.gz
samba-c9d0ee977c929f6a46905ff74cc221aaa028af74.tar.bz2
samba-c9d0ee977c929f6a46905ff74cc221aaa028af74.zip
merge LANMAN1/LANMAN2.1 fixes from head
(This used to be commit 73c686ab771b6c3e9a9335032f851083d44701c7)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/negprot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index db0694a840..bd1b9b0d57 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -101,6 +101,7 @@ static int reply_lanman1(char *inbuf, char *outbuf)
/* Create a token value and add it to the outgoing packet. */
if (global_encrypted_passwords_negotiated) {
get_challenge(smb_buf(outbuf));
+ SSVAL(outbuf,smb_vwv11, 8);
}
Protocol = PROTOCOL_LANMAN1;
@@ -144,6 +145,7 @@ static int reply_lanman2(char *inbuf, char *outbuf)
/* Create a token value and add it to the outgoing packet. */
if (global_encrypted_passwords_negotiated) {
get_challenge(smb_buf(outbuf));
+ SSVAL(outbuf,smb_vwv11, 8);
}
Protocol = PROTOCOL_LANMAN2;