s3:smbd: make use SMB_SETUP_GUEST constant
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Apr 2016 15:36:56 +0000 (17:36 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 29 Apr 2016 10:06:26 +0000 (12:06 +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>
(cherry picked from commit 25ce97892ad3ce5028e4dbbbdd844ef6619ac396)

source3/smbd/sesssetup.c

index 33574f7c086b53102e924b157c9a415c3e7f8ce4..1dbc1806ebea8106d4b30ef1e25e5758bc8856a1 100644 (file)
@@ -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