summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-05-24 15:50:56 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-24 11:42:38 -0400
commit0d10a0b7a78ae4595d4aa89fd76b304b36729028 (patch)
tree209f198378124c9a2f79fdb8b67b8c24922fa71c /src
parent621c0a33924a8b1a657b552dd609a551a79a7aea (diff)
downloadsssd_unused-0d10a0b7a78ae4595d4aa89fd76b304b36729028.tar.gz
sssd_unused-0d10a0b7a78ae4595d4aa89fd76b304b36729028.tar.xz
sssd_unused-0d10a0b7a78ae4595d4aa89fd76b304b36729028.zip
Fix uninitialized scalar variable in sdap_nested_group_check_cache
https://fedorahosted.org/sssd/ticket/878
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_accounts.c6
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;
}