From 7405a8fab0d4a8ba31213abbe2bfaa1197fd3415 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 12 Oct 2023 11:54:50 +1300 Subject: [PATCH] s4:kdc: Explicitly initialize SDBFlags structures Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source4/kdc/db-glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index 5da274c2a4a..cf606d3e6dd 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -148,7 +148,7 @@ static time_t ldb_msg_find_krb5time_ldap_time(struct ldb_message *msg, const cha static struct SDBFlags uf2SDBFlags(krb5_context context, uint32_t userAccountControl, enum samba_kdc_ent_type ent_type) { - struct SDBFlags flags = int2SDBFlags(0); + struct SDBFlags flags = {}; /* we don't allow kadmin deletes */ flags.immutable = 1; @@ -2172,7 +2172,7 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context, entry->keys.len++; } - entry->flags = int2SDBFlags(0); + entry->flags = (struct SDBFlags) {}; entry->flags.immutable = 1; entry->flags.invalid = 0; entry->flags.server = 1;