|
|
2fc102 |
From 456d952eecf2f068feafd2fff8bec8df84eba8ca Mon Sep 17 00:00:00 2001
|
|
|
2fc102 |
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
2fc102 |
Date: Thu, 7 Nov 2013 12:00:43 +0100
|
|
|
2fc102 |
Subject: [PATCH 23/31] Initialize sid_str to NULL to avoid freeing random data
|
|
|
2fc102 |
|
|
|
2fc102 |
If any function before failed, sss_idmap_free_sid() might have been
|
|
|
2fc102 |
called with random data.
|
|
|
2fc102 |
---
|
|
|
2fc102 |
src/providers/ad/ad_subdomains.c | 2 +-
|
|
|
2fc102 |
src/providers/ldap/sdap_async_initgroups_ad.c | 2 +-
|
|
|
2fc102 |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
2fc102 |
|
|
|
2fc102 |
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
|
|
|
2fc102 |
index dd692fb699ddf14bcf8f9926383e82da77c494e0..100fb13e99f7bf4b3946b1f5c5f9c626674bfb46 100644
|
|
|
2fc102 |
--- a/src/providers/ad/ad_subdomains.c
|
|
|
2fc102 |
+++ b/src/providers/ad/ad_subdomains.c
|
|
|
2fc102 |
@@ -234,7 +234,7 @@ ad_subdom_store(struct ad_subdomains_ctx *ctx,
|
|
|
2fc102 |
errno_t ret;
|
|
|
2fc102 |
enum idmap_error_code err;
|
|
|
2fc102 |
struct ldb_message_element *el;
|
|
|
2fc102 |
- char *sid_str;
|
|
|
2fc102 |
+ char *sid_str = NULL;
|
|
|
2fc102 |
uint32_t trust_type;
|
|
|
2fc102 |
bool mpg;
|
|
|
2fc102 |
|
|
|
2fc102 |
diff --git a/src/providers/ldap/sdap_async_initgroups_ad.c b/src/providers/ldap/sdap_async_initgroups_ad.c
|
|
|
2fc102 |
index aa72c8876ba93eefc6230537801c50ab04e591ce..e58d93fb2da36febd6074381882192ba9e204e86 100644
|
|
|
2fc102 |
--- a/src/providers/ldap/sdap_async_initgroups_ad.c
|
|
|
2fc102 |
+++ b/src/providers/ldap/sdap_async_initgroups_ad.c
|
|
|
2fc102 |
@@ -361,7 +361,7 @@ sdap_get_ad_tokengroups_initgroups_lookup_done(struct tevent_req *subreq)
|
|
|
2fc102 |
size_t user_count, group_count, i;
|
|
|
2fc102 |
TALLOC_CTX *tmp_ctx;
|
|
|
2fc102 |
bool in_transaction = false;
|
|
|
2fc102 |
- char *sid_str;
|
|
|
2fc102 |
+ char *sid_str = NULL;
|
|
|
2fc102 |
gid_t gid;
|
|
|
2fc102 |
time_t now;
|
|
|
2fc102 |
struct sss_domain_info *group_domain;
|
|
|
2fc102 |
--
|
|
|
2fc102 |
1.8.4.2
|
|
|
2fc102 |
|