summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-20 16:50:52 +0100
committerMichael Adam <obnox@samba.org>2008-03-20 17:00:36 +0100
commitbe2fab1fefa5cc2f0b6d0f880215e09405e0bb29 (patch)
tree3d625ed0797df62baf87deb3349812a063eae0a6 /source3/smbd
parent5346641c1c3d5f665a684f7250f82955869ef9a9 (diff)
downloadsamba-be2fab1fefa5cc2f0b6d0f880215e09405e0bb29.tar.gz
samba-be2fab1fefa5cc2f0b6d0f880215e09405e0bb29.tar.bz2
samba-be2fab1fefa5cc2f0b6d0f880215e09405e0bb29.zip
smbd: fix session setup with security = share.
Broken by pstring removal in 9ed12bfc48fe7f9b1863a9dd88e881974083053c. Jeremy, please check. Thanks to Yannick Bergeron <yaberger@ca.ibm.com> for noting this. Michael (This used to be commit 008c4bdbe5de064b4469fc1f7c7173290f35b3ef)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 5578dafd85..cf90c7183a 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/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;