(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:
Assar Westerlund
2001-01-30 03:54:21 +00:00
parent ddb37f32c6
commit 4f287022ce

View File

@@ -41,7 +41,7 @@ krb5_error_code
db_fetch(krb5_principal principal, hdb_entry **h)
{
hdb_entry *ent;
krb5_error_code ret;
krb5_error_code ret = HDB_ERR_NOENTRY;
int i;
ent = malloc (sizeof (*ent));
@@ -64,7 +64,7 @@ db_fetch(krb5_principal principal, hdb_entry **h)
}
}
free(ent);
return HDB_ERR_NOENTRY;
return ret;
}
void