summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kdb
diff options
context:
space:
mode:
Diffstat (limited to 'daemons/ipa-kdb')
-rw-r--r--daemons/ipa-kdb/ipa_kdb_delegation.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb_delegation.c b/daemons/ipa-kdb/ipa_kdb_delegation.c
index 428e214b7..579a9f315 100644
--- a/daemons/ipa-kdb/ipa_kdb_delegation.c
+++ b/daemons/ipa-kdb/ipa_kdb_delegation.c
@@ -95,7 +95,7 @@ static krb5_error_code ipadb_match_acl(krb5_context kcontext,
krb5_const_principal target)
{
struct ipadb_context *ipactx;
- krb5_error_code kerr = ENOENT;
+ krb5_error_code kerr;
LDAPMessage *lentry;
LDAPDerefRes *deref_results;
LDAPDerefRes *dres;
@@ -126,6 +126,9 @@ static krb5_error_code ipadb_match_acl(krb5_context kcontext,
goto done;
}
+ /* the default is that we fail */
+ kerr = ENOENT;
+
while (lentry) {
/* both client and target must be found in the same ACI */
client_missing = true;