Commit d9b9c2d4 authored by Grigorii Demidov's avatar Grigorii Demidov Committed by Petr Špaček

daemon: broken incoming TCP stream can lead to memory leaks in some circumstances, fixed

parent a861c4de
Pipeline #37833 passed with stages
in 9 minutes and 4 seconds
......@@ -2401,6 +2401,8 @@ int worker_process_tcp(struct worker_ctx *worker, uv_stream_t *handle,
/* Drop malformed packet and retry resolution */
pkt = NULL;
ret = 0;
} else {
qr_task_complete(task);
}
/* Only proceed if the message is valid, or it's an invalid response to
* an outbound query which needs to be treated as a timeout. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment