heimdal Return HDB_ERR_NOT_FOUND_HERE to the caller

This means that no reply packet should be generated, but that instead
the user of the libkdc API should forward the packet to a real KDC,
that has a full database.

Andrew Bartlett

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Andrew Bartlett
2010-11-12 12:31:33 +11:00
committed by Love Hornquist Astrand
parent edb2464ab9
commit 10f9468f9d
3 changed files with 34 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ _kdc_db_fetch(krb5_context context,
hdb_entry_ex **h)
{
hdb_entry_ex *ent;
krb5_error_code ret;
krb5_error_code ret = HDB_ERR_NOENTRY;
int i;
unsigned kvno = 0;
@@ -109,9 +109,9 @@ _kdc_db_fetch(krb5_context context,
}
}
free(ent);
krb5_set_error_message(context, HDB_ERR_NOENTRY,
krb5_set_error_message(context, ret,
"no such entry found in hdb");
return HDB_ERR_NOENTRY;
return ret;
}
void