summaryrefslogtreecommitdiff
path: root/src
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 /src
parent3a8abe04137d028b8ebd1cb33152aefa55893efb (diff)
downloadsssd-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.tar.gz
sssd-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.tar.bz2
sssd-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.zip
Fix segfault in sdap_get_initgr_user
Diffstat (limited to 'src')
-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;
}