summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-11-03 11:18:22 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-11-07 08:57:17 -0500
commit515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1 (patch)
tree0999fafb119f1f8b5d731565d7e49a3eeff319f5
parent3a8abe04137d028b8ebd1cb33152aefa55893efb (diff)
downloadsssd_unused-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.tar.gz
sssd_unused-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.tar.xz
sssd_unused-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.zip
Fix segfault in sdap_get_initgr_user
-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;
}