git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4abdd39
)
Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"
author
Volker Lendecke
<vl@samba.org>
Fri, 19 Dec 2008 13:28:29 +0000
(14:28 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 19 Dec 2008 13:53:29 +0000
(14:53 +0100)
source3/libsmb/async_smb.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/async_smb.c
b/source3/libsmb/async_smb.c
index 21ffa94fe7a38922d889f3da23f3f9bf63961b76..24e09e010714022440aba8710dffdda5e288affc 100644
(file)
--- 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;