diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-04-18 17:36:56 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-04-29 12:06:26 +0200 |
commit | a2e3c76601b8408ea0afcf26bd6fd694314fafe5 (patch) | |
tree | c164a64543f78e1509bac1ceea62ef2352cbd935 | |
parent | 4b5e95a9894b8c5bf2a7243ba4f3190a2f5cc5d2 (diff) | |
download | samba-a2e3c76601b8408ea0afcf26bd6fd694314fafe5.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>
(cherry picked from commit 25ce97892ad3ce5028e4dbbbdd844ef6619ac396)
-rw-r--r-- | source3/smbd/sesssetup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 33574f7c086..1dbc1806ebe 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -286,7 +286,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) { @@ -412,7 +412,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; } /* @@ -940,7 +940,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 |