summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-11-07 12:00:43 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-08 13:15:12 +0100
commit7abc9b5b1170783cbc73689a2d8169b8e4b540eb (patch)
tree6122bce1c3451b64d7e9a5d4e9edc435f5252821 /src/providers/ldap
parent4f9f570e1645c6c4303d8061808d3b1d28b1db88 (diff)
downloadsssd-7abc9b5b1170783cbc73689a2d8169b8e4b540eb.tar.gz
sssd-7abc9b5b1170783cbc73689a2d8169b8e4b540eb.tar.xz
sssd-7abc9b5b1170783cbc73689a2d8169b8e4b540eb.zip
Initialize sid_str to NULL to avoid freeing random data
If any function before failed, sss_idmap_free_sid() might have been called with random data.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_initgroups_ad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups_ad.c b/src/providers/ldap/sdap_async_initgroups_ad.c
index aa72c8876..e58d93fb2 100644
--- a/src/providers/ldap/sdap_async_initgroups_ad.c
+++ b/src/providers/ldap/sdap_async_initgroups_ad.c
@@ -361,7 +361,7 @@ sdap_get_ad_tokengroups_initgroups_lookup_done(struct tevent_req *subreq)
size_t user_count, group_count, i;
TALLOC_CTX *tmp_ctx;
bool in_transaction = false;
- char *sid_str;
+ char *sid_str = NULL;
gid_t gid;
time_t now;
struct sss_domain_info *group_domain;