Change _kdc_db_fetch() to return the database pointer too if needed by

the consumer.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17904 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-08-23 11:45:16 +00:00
parent 03f49a749f
commit 599d3cf216
6 changed files with 18 additions and 11 deletions

View File

@@ -42,6 +42,7 @@ _kdc_db_fetch(krb5_context context,
krb5_kdc_configuration *config,
krb5_const_principal principal,
unsigned flags,
HDB **db,
hdb_entry_ex **h)
{
hdb_entry_ex *ent;
@@ -66,6 +67,8 @@ _kdc_db_fetch(krb5_context context,
ent);
config->db[i]->hdb_close(context, config->db[i]);
if(ret == 0) {
if (db)
*db = config->db[i];
*h = ent;
return 0;
}