From c3cdf496e3d0ce7fc2d000054492c440544d6043 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 23 Nov 2017 12:48:48 +0100 Subject: [PATCH] Meta queries to upstreams from resolvconf setting --- src/context.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/context.c b/src/context.c index 1fc188ff..a104e8cd 100644 --- a/src/context.c +++ b/src/context.c @@ -5056,10 +5056,11 @@ getdns_context *_getdns_context_get_sys_ctxt( if (context->sys_ctxt) return context->sys_ctxt; - if ((r = getdns_context_create_with_extended_memory_functions( - &context->sys_ctxt, 1, context->mf.mf_arg, - context->mf.mf.ext.malloc, context->mf.mf.ext.realloc, - context->mf.mf.ext.free))) + if ((r = getdns_context_create_with_extended_memory_functions2( + ( context->fchg_resolvconf && context->fchg_resolvconf->fn + ? context->fchg_resolvconf->fn : NULL ), + context->mf.mf_arg, context->mf.mf.ext.malloc, + context->mf.mf.ext.realloc, context->mf.mf.ext.free))) DEBUG_ANCHOR("Could not create system context: %s\n" , getdns_get_errorstr_by_id(r));