[SCM] Samba Shared Repository - branch master updated - ff274e57eacb9ac4c81adfcfea4f7b4b668a7d94

Volker Lendecke vlendec at samba.org
Fri Oct 31 21:02:36 GMT 2008


The branch, master has been updated
       via  ff274e57eacb9ac4c81adfcfea4f7b4b668a7d94 (commit)
      from  12d2bfdb867a9500fd25f1c7557564ad0368c720 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ff274e57eacb9ac4c81adfcfea4f7b4b668a7d94
Author: Volker Lendecke <vl at samba.org>
Date:   Fri Oct 31 22:02:45 2008 +0100

    Remove a pointles call to smb_bufrem
    
    This call expanded to
    
    (smb_buflen(req->inbuf)
      - PTR_DIFF(smb_buf(req->inbuf) - smb_buf(req->inbuf)))
    
    which seems pretty pointless :-)

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

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


Changeset truncated at 500 lines:

diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index a482b33..b258386 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -1447,8 +1447,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
 		remove_from_common_flags2(FLAGS2_32_BIT_ERROR_CODES);
 
 		if ((passlen1 > MAX_PASS_LEN)
-		    || (passlen1 > smb_bufrem(req->inbuf,
-					      smb_buf(req->inbuf)))) {
+		    || (passlen1 > smb_buflen(req->inbuf))) {
 			reply_nterror(req, nt_status_squash(
 					      NT_STATUS_INVALID_PARAMETER));
 			END_PROFILE(SMBsesssetupX);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list