From aa1c32ccb08965ff2044b82cbf624404f7fd377b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 12 Nov 2010 12:31:33 +1100 Subject: 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 --- source4/heimdal/kdc/misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/heimdal/kdc/misc.c') diff --git a/source4/heimdal/kdc/misc.c b/source4/heimdal/kdc/misc.c index 9feb99cdbc..2e95ad2832 100644 --- a/source4/heimdal/kdc/misc.c +++ b/source4/heimdal/kdc/misc.c @@ -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; @@ -118,9 +118,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 -- cgit