(_kdc_db_fetch): Break out the that we request from principal from the
entry and pass it in as a seprate argument. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17308 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -40,7 +40,7 @@ struct timeval _kdc_now;
|
||||
krb5_error_code
|
||||
_kdc_db_fetch(krb5_context context,
|
||||
krb5_kdc_configuration *config,
|
||||
krb5_principal principal,
|
||||
krb5_const_principal principal,
|
||||
hdb_entry_ex **h)
|
||||
{
|
||||
hdb_entry_ex *ent;
|
||||
@@ -50,7 +50,6 @@ _kdc_db_fetch(krb5_context context,
|
||||
ent = calloc (1, sizeof (*ent));
|
||||
if (ent == NULL)
|
||||
return ENOMEM;
|
||||
ent->entry.principal = principal;
|
||||
|
||||
for(i = 0; i < config->num_db; i++) {
|
||||
ret = config->db[i]->hdb_open(context, config->db[i], O_RDONLY, 0);
|
||||
@@ -61,6 +60,7 @@ _kdc_db_fetch(krb5_context context,
|
||||
}
|
||||
ret = config->db[i]->hdb_fetch(context,
|
||||
config->db[i],
|
||||
principal,
|
||||
HDB_F_DECRYPT,
|
||||
ent);
|
||||
config->db[i]->hdb_close(context, config->db[i]);
|
||||
|
Reference in New Issue
Block a user