Commit 49a401d0 authored by Petr Špaček's avatar Petr Špaček

Merge branch 'misc-fix' into 'master'

daemon/worker: worker_process_tcp: cleanup

See merge request !452
parents 2a16966a 59af6ee9
Pipeline #32055 passed with stages
in 8 minutes and 8 seconds
......@@ -2154,10 +2154,9 @@ int worker_process_tcp(struct worker_ctx *worker, uv_stream_t *handle,
}
if (ret == 0) {
const struct sockaddr *addr = session->outgoing ? &session->peer.ip : NULL;
ret = qr_task_step(task, addr, pkt_buf);
if (ret != 0) {
return ret;
}
/* since there can be next dns message, we must to proceed
* even if qr_task_step() returns error */
qr_task_step(task, addr, pkt_buf);
}
if (len > 0) {
/* TODO: this is simple via iteration; recursion doesn't really help */
......
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