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: talloc-2.1.7~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25ce97892ad3ce5028e4dbbbdd844ef6619ac396;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 --- 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