Skip to content
Snippets Groups Projects
Commit 6f410e5a authored by Marek Vavruša's avatar Marek Vavruša
Browse files

dnsproxy: fixed request leak if failed to enqueue

parent c2bd791a
No related branches found
No related tags found
2 merge requests!330Knsupdate pubkey processing fix,!317Rose
......@@ -56,6 +56,8 @@ static int dnsproxy_fwd(int state, knot_pkt_t *pkt, struct query_data *qdata, vo
if (ret == KNOT_EOK) {
struct timeval tv = { conf()->max_conn_hs, 0 };
ret = knot_requestor_exec(&re, &tv);
} else {
knot_request_free(re.mm, req);
}
knot_requestor_clear(&re);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment