Commit 59af6ee9 authored by Grigorii Demidov's avatar Grigorii Demidov

daemon/worker: worker_process_tcp: cleanup; there are no need in special...

daemon/worker: worker_process_tcp: cleanup; there are no need in special processing for qr_task_step return code
parent 2a16966a
Pipeline #32052 passed with stages
in 6 minutes and 33 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