]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Restart DNS retransmission count when restarting the query as an A lookup
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 15 Jun 2010 21:46:43 +0000 (23:46 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 15 Jun 2010 21:46:43 +0000 (23:46 +0200)
src/dns_internal.cc

index f7b2bdf821454b837e6eafc3a7cfb4bedf0c7c3a..c39611c0196f3475910a9154e20042b31323add7 100644 (file)
@@ -1074,6 +1074,8 @@ idnsGrokReply(const char *buf, size_t sz)
         // remove the hashed query info
         idnsDropMessage(message, q);
 
+        // reset the query as an A query
+        q->nsends = 0;
         q->start_t = current_time;
         q->id = idnsQueryID();
         rfc1035SetQueryID(q->buf, q->id);