diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-11-03 11:18:22 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-07 08:57:17 -0500 |
commit | 515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1 (patch) | |
tree | 0999fafb119f1f8b5d731565d7e49a3eeff319f5 | |
parent | 3a8abe04137d028b8ebd1cb33152aefa55893efb (diff) | |
download | sssd-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.tar.gz sssd-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.tar.xz sssd-515470a32aeab1eb64a9c4f1adf0c6b4a8ab94f1.zip |
Fix segfault in sdap_get_initgr_user
-rw-r--r-- | src/providers/ldap/sdap_async_initgroups.c | 3 |
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 4ef973633..9056dcc59 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; } |