git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2535d7
)
Fix bug #6009 - Setting "min receivefile size = 1" breaks writes.
author
Jeremy Allison
<jra@samba.org>
Sun, 4 Jan 2009 19:46:28 +0000
(11:46 -0800)
committer
Jeremy Allison
<jra@samba.org>
Sun, 4 Jan 2009 19:46:28 +0000
(11:46 -0800)
Karolin please pull for 3.3.0. Thanks !
Jeremy.
source/smbd/process.c
patch
|
blob
|
history
diff --git
a/source/smbd/process.c
b/source/smbd/process.c
index 2587097d3abffa67fa2c2459fcd5583f6d6bcdca..318406346257134cb03021ff67b68434e8a59b01 100644
(file)
--- a/
source/smbd/process.c
+++ b/
source/smbd/process.c
@@
-283,7
+283,7
@@
static NTSTATUS receive_smb_raw_talloc(TALLOC_CTX *mem_ctx, int fd,
if (CVAL(lenbuf,0) == 0 &&
min_recv_size &&
- smb_len_large(lenbuf) >
min_recv_size
&& /* Could be a UNIX large writeX. */
+ smb_len_large(lenbuf) >
(min_recv_size + STANDARD_WRITE_AND_X_HEADER_SIZE)
&& /* Could be a UNIX large writeX. */
!srv_is_signing_active()) {
return receive_smb_raw_talloc_partial_read(