hdb: decorate HDB_entry with context member
Decorate HDB_entry with context and move free_entry callback into HDB structure itself. Requires updating hdb_free_entry() signature to include HDB parameter. A follow-up commit will consolidate hdb_entry_ex (which has a single hdb_entry member) into hdb_entry.
This commit is contained in:
@@ -117,7 +117,7 @@ synthesize_client(krb5_context context,
|
||||
*(e->entry.max_life) = config->synthetic_clients_max_life;
|
||||
*h = e;
|
||||
} else {
|
||||
hdb_free_entry(context, e);
|
||||
hdb_free_entry(context, &null_db, e);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@@ -246,9 +246,9 @@ out:
|
||||
}
|
||||
|
||||
KDC_LIB_FUNCTION void KDC_LIB_CALL
|
||||
_kdc_free_ent(krb5_context context, hdb_entry_ex *ent)
|
||||
_kdc_free_ent(krb5_context context, HDB *db, hdb_entry_ex *ent)
|
||||
{
|
||||
hdb_free_entry (context, ent);
|
||||
hdb_free_entry (context, db, ent);
|
||||
free (ent);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user