From 1f401f725377808b43a332159bb4389d3cbb60bc Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 30 Jan 2018 12:40:47 +0100 Subject: [PATCH] Do not return freed netreqs! --- src/general.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/general.c b/src/general.c index 80b40a2c..3e50124d 100644 --- a/src/general.c +++ b/src/general.c @@ -697,6 +697,8 @@ getdns_general_ns(getdns_context *context, getdns_eventloop *loop, /* clean up the request */ _getdns_context_clear_outbound_request(req); _getdns_dns_req_free(req); + if (return_netreq_p) + *return_netreq_p = NULL; return r; } return GETDNS_RETURN_GOOD;