]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Use uint8_t for authoritative flag
authorSamuel Cabrero <scabrero@samba.org>
Mon, 18 Apr 2022 14:44:23 +0000 (16:44 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 30 Apr 2022 00:10:34 +0000 (00:10 +0000)
It is the type used in the winbindd_response struct.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_pam_auth_crap.c

index a6f13806df978e686f2f7257ce182e4cc984e017..98c43cdaa29826664fbc3b424d40ba8110f416d7 100644 (file)
@@ -26,7 +26,7 @@
 
 struct winbindd_pam_auth_crap_state {
        struct winbindd_response *response;
-       bool authoritative;
+       uint8_t authoritative;
        uint32_t flags;
 };
 
@@ -48,7 +48,7 @@ struct tevent_req *winbindd_pam_auth_crap_send(
        if (req == NULL) {
                return NULL;
        }
-       state->authoritative = true;
+       state->authoritative = 1;
        state->flags = request->flags;
 
        if (state->flags & WBFLAG_PAM_AUTH_PAC) {
@@ -131,7 +131,7 @@ struct tevent_req *winbindd_pam_auth_crap_send(
                 * We don't know the domain so
                 * we're not authoritative
                 */
-               state->authoritative = false;
+               state->authoritative = 0;
                tevent_req_nterror(req, NT_STATUS_NO_SUCH_USER);
                return tevent_req_post(req, ev);
        }