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