[SCM] Samba Shared Repository - branch v3-6-test updated

Karolin Seeger kseeger at samba.org
Mon Jan 30 12:43:41 MST 2012


The branch, v3-6-test has been updated
       via  e86ad41 Fix for bug #8727 - smbclient fails with posix large reads.
      from  ec70cd9 WHATSNEW: Start release notes for Samba 3.6.4.

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


- Log -----------------------------------------------------------------
commit e86ad41af9d50265cab7cfdabdacb40bb4d3acc0
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Fri Jan 27 16:03:55 2012 -0800

    Fix for bug #8727 - smbclient fails with posix large reads.
    
    s3-libsmb Do not limit read replies to NBT packet sizes
    
    With the posix extensions, we can read 16MB at a time, so we need to check
    the full size of the packet, not the size rounded down to the old NBT
    limit.
    
    Signed-off-by: Jeremy Allison <jra at samba.org>

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

Summary of changes:
 source3/libsmb/clireadwrite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 215e1d3..83531a5 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -215,7 +215,7 @@ static void cli_read_andx_done(struct tevent_req *subreq)
 
 	state->buf = (uint8_t *)smb_base(inbuf) + SVAL(vwv+6, 0);
 
-	if (trans_oob(smb_len(inbuf), SVAL(vwv+6, 0), state->received)
+	if (trans_oob(smb_len_large(inbuf), SVAL(vwv+6, 0), state->received)
 	    || ((state->received != 0) && (state->buf < bytes))) {
 		DEBUG(5, ("server returned invalid read&x data offset\n"));
 		tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list