merge LANMAN1/LANMAN2.1 fixes from head
authorAndrew Tridgell <tridge@samba.org>
Wed, 21 May 2003 05:20:54 +0000 (05:20 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 21 May 2003 05:20:54 +0000 (05:20 +0000)
source/smbd/negprot.c

index db0694a840447758bea3170fae7c365c7a07e38c..bd1b9b0d572d380b70d6f2108559adf84d62315c 100644 (file)
@@ -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;