From: Jo Sutton Date: Thu, 13 Jun 2024 22:42:51 +0000 (+1200) Subject: s4:auth: Use appropriate type for userAccountControl flags X-Git-Tag: tdb-1.4.11~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3dffd0fa6775e6c1d3bfddb4165a28d3f46980ae;p=thirdparty%2Fsamba.git s4:auth: Use appropriate type for userAccountControl flags Signed-off-by: Jo Sutton Reviewed-by: Martin Schwenke --- diff --git a/source4/auth/sam.c b/source4/auth/sam.c index 093d29080ec..f21827118cf 100644 --- a/source4/auth/sam.c +++ b/source4/auth/sam.c @@ -1003,7 +1003,7 @@ NTSTATUS authsam_reread_user_logon_data( TALLOC_CTX *tmp_ctx = NULL; const struct ldb_val *v = NULL; struct ldb_result *res = NULL; - uint16_t acct_flags = 0; + uint32_t acct_flags = 0; const char *attr_name = "msDS-User-Account-Control-Computed"; NTSTATUS status = NT_STATUS_OK; int ret;