Do not return freed netreqs!

This commit is contained in:
Willem Toorop 2018-01-30 12:40:47 +01:00
parent 2e03d3799c
commit 1f401f7253
1 changed files with 2 additions and 0 deletions

View File

@ -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;