|
|
6cf099 |
From d97d6d3acc32d0e4914a1d2c39bfb7fa8ecc7197 Mon Sep 17 00:00:00 2001
|
|
|
6cf099 |
From: Pavel Reichl <preichl@redhat.com>
|
|
|
6cf099 |
Date: Thu, 24 Sep 2015 11:03:12 -0400
|
|
|
6cf099 |
Subject: [PATCH 97/97] AD: inicialize root_domain_attrs field
|
|
|
6cf099 |
MIME-Version: 1.0
|
|
|
6cf099 |
Content-Type: text/plain; charset=UTF-8
|
|
|
6cf099 |
Content-Transfer-Encoding: 8bit
|
|
|
6cf099 |
|
|
|
6cf099 |
Resolves:
|
|
|
6cf099 |
https://fedorahosted.org/sssd/ticket/2805
|
|
|
6cf099 |
|
|
|
6cf099 |
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
|
|
6cf099 |
(cherry picked from commit 101628a48d25ffae3b13c75d0b0b01577188c803)
|
|
|
6cf099 |
---
|
|
|
6cf099 |
src/providers/ad/ad_subdomains.c | 3 ++-
|
|
|
6cf099 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
6cf099 |
|
|
|
6cf099 |
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
|
|
|
6cf099 |
index 8ed3dab0995f78a16f4a7df2e729ea88a39a782c..c2a6544fb7f146058acee9baca9b0cc6ee50aa3f 100644
|
|
|
6cf099 |
--- a/src/providers/ad/ad_subdomains.c
|
|
|
6cf099 |
+++ b/src/providers/ad/ad_subdomains.c
|
|
|
6cf099 |
@@ -505,7 +505,7 @@ static void ad_subdomains_retrieve(struct ad_subdomains_ctx *ctx,
|
|
|
6cf099 |
int dp_error = DP_ERR_FATAL;
|
|
|
6cf099 |
int ret;
|
|
|
6cf099 |
|
|
|
6cf099 |
- req_ctx = talloc(be_req, struct ad_subdomains_req_ctx);
|
|
|
6cf099 |
+ req_ctx = talloc_zero(be_req, struct ad_subdomains_req_ctx);
|
|
|
6cf099 |
if (req_ctx == NULL) {
|
|
|
6cf099 |
ret = ENOMEM;
|
|
|
6cf099 |
goto done;
|
|
|
6cf099 |
@@ -519,6 +519,7 @@ static void ad_subdomains_retrieve(struct ad_subdomains_ctx *ctx,
|
|
|
6cf099 |
req_ctx->root_id_ctx = NULL;
|
|
|
6cf099 |
req_ctx->root_op = NULL;
|
|
|
6cf099 |
req_ctx->root_domain = NULL;
|
|
|
6cf099 |
+ req_ctx->root_domain_attrs = NULL;
|
|
|
6cf099 |
req_ctx->reply_count = 0;
|
|
|
6cf099 |
req_ctx->reply = NULL;
|
|
|
6cf099 |
|
|
|
6cf099 |
--
|
|
|
6cf099 |
2.4.3
|
|
|
6cf099 |
|