diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-05-24 15:50:56 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-05-24 11:42:38 -0400 |
commit | 0d10a0b7a78ae4595d4aa89fd76b304b36729028 (patch) | |
tree | 209f198378124c9a2f79fdb8b67b8c24922fa71c | |
parent | 621c0a33924a8b1a657b552dd609a551a79a7aea (diff) | |
download | sssd-0d10a0b7a78ae4595d4aa89fd76b304b36729028.tar.gz sssd-0d10a0b7a78ae4595d4aa89fd76b304b36729028.tar.bz2 sssd-0d10a0b7a78ae4595d4aa89fd76b304b36729028.zip |
Fix uninitialized scalar variable in sdap_nested_group_check_cache
https://fedorahosted.org/sssd/ticket/878
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c index 720ce96c..d34b8849 100644 --- a/src/providers/ldap/sdap_async_accounts.c +++ b/src/providers/ldap/sdap_async_accounts.c @@ -3820,8 +3820,10 @@ sdap_nested_group_check_cache(TALLOC_CTX *mem_ctx, /* It wasn't found in the groups either */ ret = ENOENT; done: - *_msgs = talloc_steal(mem_ctx, msgs); - *_mtype = mtype; + if (ret == EOK || ret == EAGAIN) { + *_msgs = talloc_steal(mem_ctx, msgs); + *_mtype = mtype; + } talloc_zfree(tmp_ctx); return ret; } |