]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 27 Jun 2010 09:40:48 +0000 (21:40 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 27 Jun 2010 09:40:48 +0000 (21:40 +1200)
Restart DNS retransmission count when restarting the query as an A lookup

src/dns_internal.cc

index 5d99c83a7d078531392007db869bba3e127e85f0..3a1d25493403680c761a5224319836ce26ee58c8 100644 (file)
@@ -1060,6 +1060,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);