summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 4ef97363..9056dcc5 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -2363,9 +2363,10 @@ static void sdap_get_initgr_user(struct tevent_req *subreq)
}
tevent_req_error(req, ENOENT);
+ return;
} else if (count != 1) {
DEBUG(2, ("Expected one user entry and got %d\n", count));
- tevent_req_error(req, ENOENT);
+ tevent_req_error(req, EINVAL);
return;
}