diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-07 12:00:43 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-08 13:10:18 +0100 |
commit | c56da2ccf852c403b21dd987de8bae451654e95a (patch) | |
tree | d7331a63417bc4950d69bfed777925c49913b67c /src | |
parent | 5a065092ef744540f57e3e6e72210fbe17a1e2f3 (diff) | |
download | sssd-c56da2ccf852c403b21dd987de8bae451654e95a.tar.gz sssd-c56da2ccf852c403b21dd987de8bae451654e95a.tar.xz sssd-c56da2ccf852c403b21dd987de8bae451654e95a.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')
-rw-r--r-- | src/providers/ad/ad_subdomains.c | 2 | ||||
-rw-r--r-- | src/providers/ldap/sdap_async_initgroups_ad.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c index 45e7cc657..73190faa1 100644 --- a/src/providers/ad/ad_subdomains.c +++ b/src/providers/ad/ad_subdomains.c @@ -104,7 +104,7 @@ ad_subdom_store(struct ad_subdomains_ctx *ctx, errno_t ret; enum idmap_error_code err; struct ldb_message_element *el; - char *sid_str; + char *sid_str = NULL; uint32_t trust_type; bool mpg; 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; |