Meta queries to upstreams from resolvconf setting

This commit is contained in:
Willem Toorop 2017-11-23 12:48:48 +01:00
parent c0a3babe0a
commit c3cdf496e3
1 changed files with 5 additions and 4 deletions

View File

@ -5056,10 +5056,11 @@ getdns_context *_getdns_context_get_sys_ctxt(
if (context->sys_ctxt) if (context->sys_ctxt)
return context->sys_ctxt; return context->sys_ctxt;
if ((r = getdns_context_create_with_extended_memory_functions( if ((r = getdns_context_create_with_extended_memory_functions2(
&context->sys_ctxt, 1, context->mf.mf_arg, ( context->fchg_resolvconf && context->fchg_resolvconf->fn
context->mf.mf.ext.malloc, context->mf.mf.ext.realloc, ? context->fchg_resolvconf->fn : NULL ),
context->mf.mf.ext.free))) 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" DEBUG_ANCHOR("Could not create system context: %s\n"
, getdns_get_errorstr_by_id(r)); , getdns_get_errorstr_by_id(r));