mirror of
https://github.com/samba-team/samba.git
synced 2025-11-12 04:23:49 +03:00
Don't believe len returned from read_smb_length_return_keepalive(),
it may be a UNIX large writeX (which wraps len in that case). Stevef this should fix your 128k write bug. Jeremy.
This commit is contained in:
@@ -259,7 +259,7 @@ static ssize_t receive_smb_raw_talloc(TALLOC_CTX *mem_ctx,
|
||||
|
||||
if (CVAL(lenbuf,0) != SMBkeepalive &&
|
||||
min_recv_size &&
|
||||
len > min_recv_size &&
|
||||
smb_len_large(lenbuf) > min_recv_size && /* Could be a UNIX large writeX. */
|
||||
!srv_is_signing_active()) {
|
||||
|
||||
return receive_smb_raw_talloc_partial_read(mem_ctx,
|
||||
|
||||
Reference in New Issue
Block a user