(db_fetch): return better error code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9615 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -41,7 +41,7 @@ krb5_error_code
|
|||||||
db_fetch(krb5_principal principal, hdb_entry **h)
|
db_fetch(krb5_principal principal, hdb_entry **h)
|
||||||
{
|
{
|
||||||
hdb_entry *ent;
|
hdb_entry *ent;
|
||||||
krb5_error_code ret;
|
krb5_error_code ret = HDB_ERR_NOENTRY;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ent = malloc (sizeof (*ent));
|
ent = malloc (sizeof (*ent));
|
||||||
@@ -64,7 +64,7 @@ db_fetch(krb5_principal principal, hdb_entry **h)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(ent);
|
free(ent);
|
||||||
return HDB_ERR_NOENTRY;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user