The req->numserv tries to track that we have received all the
answers from different servers. This is pointless when the request
is about to go away as we need to send something to the client
in this case anyway.
---
 src/dnsproxy.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/dnsproxy.c b/src/dnsproxy.c
index 0698387..2a0a94a 100644
--- a/src/dnsproxy.c
+++ b/src/dnsproxy.c
@@ -538,7 +538,6 @@ static gboolean request_timeout(gpointer user_data)
        DBG("id 0x%04x", req->srcid);
 
        request_list = g_slist_remove(request_list, req);
-       req->numserv--;
 
        if (req->resplen > 0 && req->resp) {
                int sk, err;
@@ -558,7 +557,7 @@ static gboolean request_timeout(gpointer user_data)
                }
                if (err < 0)
                        return FALSE;
-       } else if (req->request && req->numserv == 0) {
+       } else if (req->request) {
                struct domain_hdr *hdr;
 
                if (req->protocol == IPPROTO_TCP) {
-- 
2.1.0

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to