>From e1f6f52a811b75a383b5d6588df3c3459e119323 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 5 Mar 2014 12:14:05 +0100 Subject: [PATCH 3/3] AD: Use the right memory context The caller would typically use the same combination of context as this bug implies, but we should use the passed-in context anyway. --- src/providers/ad/ad_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c index 57a0a3c39c55fec127948c19238f12d3e8827913..2bb5ff3edded877c1c6563af6eb5ed4b0c3e7f1d 100644 --- a/src/providers/ad/ad_common.c +++ b/src/providers/ad/ad_common.c @@ -1136,7 +1136,7 @@ ad_gc_conn_list(TALLOC_CTX *mem_ctx, struct ad_id_ctx *ad_ctx, cindex++; } - clist[cindex] = ad_get_dom_ldap_conn(ad_ctx, dom); + clist[cindex] = ad_get_dom_ldap_conn(mem_ctx, dom); return clist; } -- 1.8.5.3