From: Stefan Metzmacher Date: Mon, 18 Apr 2016 15:36:56 +0000 (+0200) Subject: s3:smbd: make use SMB_SETUP_GUEST constant X-Git-Tag: samba-4.2.12~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2e3c76601b8408ea0afcf26bd6fd694314fafe5;p=thirdparty%2Fsamba.git s3:smbd: make use SMB_SETUP_GUEST constant BUG: https://bugzilla.samba.org/show_bug.cgi?id=11847 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider Reviewed-by: Günther Deschner (cherry picked from commit 25ce97892ad3ce5028e4dbbbdd844ef6619ac396) --- 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