summaryrefslogtreecommitdiffstats
path: root/source/smbd/negprot.c
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
commit73c686ab771b6c3e9a9335032f851083d44701c7 (patch)
tree439a46069df4205b14217d2b8d662808ec76b802 /source/smbd/negprot.c
parenta7f47422db05592651b602bdedc4761c12f5210b (diff)
downloadsamba-73c686ab771b6c3e9a9335032f851083d44701c7.tar.gz
samba-73c686ab771b6c3e9a9335032f851083d44701c7.tar.xz
samba-73c686ab771b6c3e9a9335032f851083d44701c7.zip
merge LANMAN1/LANMAN2.1 fixes from head
Diffstat (limited to 'source/smbd/negprot.c')
-rw-r--r--source/smbd/negprot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c
index db0694a8404..bd1b9b0d572 100644
--- a/source/smbd/negprot.c
+++ b/source/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;