From: Grigorii Demidov Date: Mon, 22 Jan 2018 09:16:42 +0000 (+0100) Subject: daemon/worker: worker_process_tcp: cleanup; there are no need in special processing... X-Git-Tag: v2.0.0~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59af6ee90e92bbcedcfd993d24526a42330e40fe;p=thirdparty%2Fknot-resolver.git daemon/worker: worker_process_tcp: cleanup; there are no need in special processing for qr_task_step return code --- diff --git a/daemon/worker.c b/daemon/worker.c index fa072c64e..5903e78ea 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -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 */