[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-335-g008c4bd

Michael Adam obnox at samba.org
Thu Mar 20 16:02:17 GMT 2008


The branch, v3-2-test has been updated
       via  008c4bdbe5de064b4469fc1f7c7173290f35b3ef (commit)
      from  4cc09ec40609484c973361a0cc0f05bfaef1738e (commit)

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


- Log -----------------------------------------------------------------
commit 008c4bdbe5de064b4469fc1f7c7173290f35b3ef
Author: Michael Adam <obnox at samba.org>
Date:   Thu Mar 20 16:50:52 2008 +0100

    smbd: fix session setup with security = share.
    
    Broken by pstring removal in 9ed12bfc48fe7f9b1863a9dd88e881974083053c.
    Jeremy, please check.
    
    Thanks to Yannick Bergeron <yaberger at ca.ibm.com> for noting this.
    
    Michael

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

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


Changeset truncated at 500 lines:

diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c
index 5578daf..cf90c71 100644
--- a/source/smbd/sesssetup.c
+++ b/source/smbd/sesssetup.c
@@ -1533,7 +1533,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
 		if (doencrypt) {
 			lm_resp = data_blob(p, passlen1);
 			nt_resp = data_blob(p+passlen1, passlen2);
-		} else {
+		} else if (lp_security() != SEC_SHARE) {
 			char *pass = NULL;
 			bool unic= smb_flag2 & FLAGS2_UNICODE_STRINGS;
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list