s3:smbd: Fix off-by 4 error in wrap protection code in create_outbuf()
commit36f6a8abb2ad0c7d0551679cc61a29fa2dc16d80
authorJeremy Allison <jra@samba.org>
Mon, 18 Mar 2013 22:05:24 +0000 (18 15:05 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 20 Mar 2013 16:32:26 +0000 (20 09:32 -0700)
treeca340b3d48a3456a7d0c99b560d7b6f1fc537ef8
parentb80111adb3a30ff386b3c45fcf962c417256bb59
s3:smbd: Fix off-by 4 error in wrap protection code in create_outbuf()

Subtract 4 from smb_size (39) here as the length
of the SMB reply following the 4 byte type+length
field can be up to 0xFFFFFF bytes.

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/process.c