summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2015-09-24 11:03:12 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-09-30 09:48:33 +0200
commit101628a48d25ffae3b13c75d0b0b01577188c803 (patch)
treeeef37e4fa1881d84d166f001525b386bf844cb6b
parentf182ede719c4290f46f09af1191c5eec3da54503 (diff)
downloadsssd-101628a48d25ffae3b13c75d0b0b01577188c803.tar.gz
sssd-101628a48d25ffae3b13c75d0b0b01577188c803.tar.xz
sssd-101628a48d25ffae3b13c75d0b0b01577188c803.zip
AD: inicialize root_domain_attrs field
Resolves: https://fedorahosted.org/sssd/ticket/2805 Reviewed-by: Pavel Březina <pbrezina@redhat.com>
-rw-r--r--src/providers/ad/ad_subdomains.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
index 8ed3dab09..c2a6544fb 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;