]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: let sdb_free_entry clear sdb_entry_ex at the end
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Mar 2022 12:31:31 +0000 (13:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Mar 2022 09:19:33 +0000 (09:19 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/sdb.c

index 673cf4db27278f7f4d824572bb100d6c6933adce..f84792f70629cd4a38e0041b4ad1394d2710abed 100644 (file)
@@ -47,6 +47,7 @@ void sdb_free_entry(struct sdb_entry_ex *ent)
        }
 
        free_sdb_entry(&ent->entry);
+       ZERO_STRUCTP(ent);
 }
 
 static void free_sdb_key(struct sdb_key *k)