summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-04-18 17:36:56 +0200
committerStefan Metzmacher <metze@samba.org>2016-04-28 16:51:17 +0200
commit25ce97892ad3ce5028e4dbbbdd844ef6619ac396 (patch)
treec0d8ef8f1c4b8e14d4e96faac2ac7285a548f46a /source3
parent837e6176329330893d5a1e4ce4ac67dbac758e56 (diff)
downloadsamba-25ce97892ad3ce5028e4dbbbdd844ef6619ac396.tar.gz
s3:smbd: make use SMB_SETUP_GUEST constant
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11847 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/sesssetup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index b7fdd00147e..88cbf97b20d 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -294,7 +294,7 @@ static void reply_sesssetup_and_X_spnego(struct smb_request *req)
}
if (security_session_user_level(session_info, NULL) < SECURITY_USER) {
- action = 1;
+ action |= SMB_SETUP_GUEST;
}
if (session_info->session_key.length > 0) {
@@ -420,7 +420,7 @@ static void reply_sesssetup_and_X_spnego(struct smb_request *req)
}
if (security_session_user_level(session_info, NULL) < SECURITY_USER) {
- action = 1;
+ action |= SMB_SETUP_GUEST;
}
/*
@@ -949,7 +949,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
}
if (security_session_user_level(session_info, NULL) < SECURITY_USER) {
- action = 1;
+ action |= SMB_SETUP_GUEST;
}
/* register the name and uid as being validated, so further connections