From 27847b9a0a74bc719388bc37b6604c88544f9b06 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 23 Nov 2017 13:23:00 +0100 Subject: [PATCH] Initialize context->sys_ctxt! --- src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index a104e8cd..09718efb 100644 --- a/src/context.c +++ b/src/context.c @@ -5056,7 +5056,7 @@ getdns_context *_getdns_context_get_sys_ctxt( if (context->sys_ctxt) return context->sys_ctxt; - if ((r = getdns_context_create_with_extended_memory_functions2( + if ((r = getdns_context_create_with_extended_memory_functions2(&context->sys_ctxt, ( context->fchg_resolvconf && context->fchg_resolvconf->fn ? context->fchg_resolvconf->fn : NULL ), context->mf.mf_arg, context->mf.mf.ext.malloc,