]> git.ipfire.org Git - thirdparty/samba.git/commit - source3/smbd/smb1_process.c
smbd: Add padding byte to readx response
authorChristof Schmitt <cs@samba.org>
Fri, 15 Aug 2014 05:04:33 +0000 (22:04 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 29 Aug 2014 22:27:13 +0000 (00:27 +0200)
commit2132acb4d99d01834f1ed8900f1db45bb1253922
treea258f58041914c69a9dd3e72ce3f623c742f9849
parent52630eb78fe202f0060ff6c8772f26bdcc9175ff
smbd: Add padding byte to readx response

MS-CIFS 2.2.4.42.2 states: "Pad (1 byte): This field is optional. When
using the NT LAN Manager dialect, this field can be used to align the
Data field to a 16-bit boundary relative to the start of the SMB Header.
If Unicode strings are being used, this field MUST be present. When
used, this field MUST be one padding byte long."

Always add the padding byte to all readx responses to avoid additional
complexity.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/aio.c
source3/smbd/pipes.c
source3/smbd/process.c
source3/smbd/reply.c