]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Prefer explicit initialization to ZERO_STRUCTP()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 5 Sep 2023 02:17:14 +0000 (14:17 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Sep 2023 21:35:29 +0000 (21:35 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c

index 4c9ea3f2848968cf466878540808d204ef956156..3821815d0dd2db61c9468f427aea9f515bd08963 100644 (file)
@@ -520,7 +520,7 @@ static krb5_error_code samba_kdc_fill_user_keys(krb5_context context,
                                                          salt.data,
                                                          salt.length);
                        if (ret) {
-                               ZERO_STRUCTP(key.salt);
+                               *key.salt = (struct sdb_salt) {};
                                sdb_key_free(&key);
                                goto fail;
                        }