diff options
author | Volker Lendecke <vl@samba.org> | 2008-12-19 14:28:29 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-12-19 14:53:29 +0100 |
commit | 45ad3df1405c5d978872d6de63df5059efcc181f (patch) | |
tree | 29c8d2c1a7bef37ba62e9b9b24eaa797533bda06 /source3/libsmb | |
parent | 4abdd3981e9688aaaf19173182ace7b1fdf93f6d (diff) | |
download | samba-45ad3df1405c5d978872d6de63df5059efcc181f.tar.gz samba-45ad3df1405c5d978872d6de63df5059efcc181f.tar.bz2 samba-45ad3df1405c5d978872d6de63df5059efcc181f.zip |
Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/async_smb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 21ffa94fe7..24e09e0107 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -269,7 +269,7 @@ bool smb_splice_chain(char **poutbuf, uint8_t smb_command, new_size = old_size + chain_padding + 1 + wct * sizeof(uint16_t) + 2; if ((bytes_alignment != 0) && ((new_size % bytes_alignment) != 0)) { - bytes_padding = bytes_alignment + (new_size % bytes_alignment); + bytes_padding = bytes_alignment - (new_size % bytes_alignment); } new_size += bytes_padding + num_bytes; |