]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: make use SMB_SETUP_GUEST constant
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Apr 2016 15:36:56 +0000 (17:36 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Apr 2016 14:51:17 +0000 (16:51 +0200)
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>
source3/smbd/sesssetup.c

index b7fdd00147e1d20c92f408fb5c1f162edbcd8f60..88cbf97b20db54173350bed236b539c38b960a50 100644 (file)
@@ -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