1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

kdc-db-glue: Fix a NULL pointer dereference.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andreas Schneider 2015-02-25 11:52:45 +01:00 committed by Stefan Metzmacher
parent 13cd1d5c58
commit b9072d9741

View File

@ -188,9 +188,12 @@ static HDBFlags uf2HDBFlags(krb5_context context, uint32_t userAccountControl, e
static int samba_kdc_entry_destructor(struct samba_kdc_entry *p)
{
hdb_entry_ex *entry_ex = p->entry_ex;
free_hdb_entry(&entry_ex->entry);
return 0;
if (p->entry_ex != NULL) {
hdb_entry_ex *entry_ex = p->entry_ex;
free_hdb_entry(&entry_ex->entry);
}
return 0;
}
static void samba_kdc_free_entry(krb5_context context, hdb_entry_ex *entry_ex)