[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-178-gde2ebff

Jeremy Allison jra at samba.org
Sun Nov 4 23:46:21 GMT 2007


The branch, v3-2-test has been updated
       via  de2ebffa3c99ed28a3868fd956ef45629ca855b6 (commit)
      from  963fc7685212689f02b3adcc05b4273ee5c382d4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit de2ebffa3c99ed28a3868fd956ef45629ca855b6
Author: Jeremy Allison <jra at samba.org>
Date:   Sun Nov 4 15:38:43 2007 -0800

    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.

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/process.c b/source/smbd/process.c
index aa39b01..659b7b5 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -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,


-- 
Samba Shared Repository


More information about the samba-cvs mailing list