]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: let samba_kdc_entry_destructor() call sdb_free_entry()
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Feb 2022 19:55:25 +0000 (20:55 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Mar 2022 09:19:33 +0000 (09:19 +0000)
It's basically the same as free_sdb_entry(), but the next
step will make free_sdb_entry() private.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c

index 8845cf1755b09e0382ae8feb9cdfbad797f514ed..ea35024b22751ba1e28ad46847160dc113bc0e0a 100644 (file)
@@ -254,7 +254,7 @@ static int samba_kdc_entry_destructor(struct samba_kdc_entry *p)
 {
        if (p->entry_ex != NULL) {
                struct sdb_entry_ex *entry_ex = p->entry_ex;
-               free_sdb_entry(&entry_ex->entry);
+               sdb_free_entry(entry_ex);
        }
 
        return 0;