]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Initialize pointers with NULL
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 20 Jun 2023 04:40:03 +0000 (16:40 +1200)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Jun 2023 05:45:36 +0000 (05:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/hdb-samba4.c

index ae6ce914917dfc53b0dc5c2dd0caa4821412b1c8..f8fdef535b272515fc714b73b6935a4b001874e0 100644 (file)
@@ -303,8 +303,8 @@ hdb_samba4_check_constrained_delegation(krb5_context context, HDB *db,
                                        hdb_entry *entry,
                                        krb5_const_principal target_principal)
 {
-       struct samba_kdc_db_context *kdc_db_ctx;
-       struct samba_kdc_entry *skdc_entry;
+       struct samba_kdc_db_context *kdc_db_ctx = NULL;
+       struct samba_kdc_entry *skdc_entry = NULL;
        krb5_error_code ret;
 
        kdc_db_ctx = talloc_get_type_abort(db->hdb_db,