s3: smbd: Correctly reflect back SMB_PIDHIGH to a client.
authorPer Forlin <per.forlin@gmail.com>
Sat, 11 Jun 2016 00:00:55 +0000 (17:00 -0700)
committerAlexander Bokovoy <ab@samba.org>
Sat, 18 Jun 2016 13:32:18 +0000 (15:32 +0200)
Torture test to follow.

Signed-off-by: Per Forlin <per.forlin@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/smbd/process.c

index 34939f088f89420de8861adda59a6192cce72d6b..e3c32f945f7d62df084c533bee82258b08939bd5 100644 (file)
@@ -2077,6 +2077,7 @@ static void construct_reply_common(uint8_t cmd, const uint8_t *inbuf,
 
        SSVAL(outbuf,smb_tid,SVAL(inbuf,smb_tid));
        SSVAL(outbuf,smb_pid,SVAL(inbuf,smb_pid));
+       SSVAL(outbuf,smb_pidhigh,SVAL(inbuf,smb_pidhigh));
        SSVAL(outbuf,smb_uid,SVAL(inbuf,smb_uid));
        SSVAL(outbuf,smb_mid,SVAL(inbuf,smb_mid));
 }