diff options
author | Tim Prouty <tprouty@samba.org> | 2009-02-09 23:43:08 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-02-16 00:29:20 -0800 |
commit | dea223ba7914ff9cdc1a35720086c437c74fc5ac (patch) | |
tree | 43326357885c3dded1b78210d105135231c146e1 | |
parent | 6211162d3eeebcfde86a039c67119e6388e6dfbc (diff) | |
download | samba-dea223ba7914ff9cdc1a35720086c437c74fc5ac.tar.gz samba-dea223ba7914ff9cdc1a35720086c437c74fc5ac.tar.bz2 samba-dea223ba7914ff9cdc1a35720086c437c74fc5ac.zip |
make receive_smb_raw_talloc more readable
-rw-r--r-- | source3/smbd/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 0285d00d3d..18fbdd7939 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -272,10 +272,10 @@ static NTSTATUS receive_smb_raw_talloc(TALLOC_CTX *mem_ctx, int fd, return status; } - if (CVAL(lenbuf,0) == 0 && - min_recv_size && - smb_len_large(lenbuf) > (min_recv_size + STANDARD_WRITE_AND_X_HEADER_SIZE) && /* Could be a UNIX large writeX. */ - !srv_is_signing_active()) { + if (CVAL(lenbuf,0) == 0 && min_recv_size && + (smb_len_large(lenbuf) > /* Could be a UNIX large writeX. */ + (min_recv_size + STANDARD_WRITE_AND_X_HEADER_SIZE)) && + !srv_is_signing_active()) { return receive_smb_raw_talloc_partial_read( mem_ctx, lenbuf, fd, buffer, timeout, p_unread, plen); |