From 101628a48d25ffae3b13c75d0b0b01577188c803 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Sep 30 2015 07:48:33 +0000 Subject: AD: inicialize root_domain_attrs field Resolves: https://fedorahosted.org/sssd/ticket/2805 Reviewed-by: Pavel Březina --- diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c index 8ed3dab..c2a6544 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;