<rdar://problem/7302554> mDNSResponder keeps sending WAB queries when DNS configurati...
authormparthasarathy@apple.com <mparthasarathy@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Tue, 20 Oct 2009 01:06:01 +0000 (01:06 +0000)
committermparthasarathy@apple.com <mparthasarathy@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Tue, 20 Oct 2009 01:06:01 +0000 (01:06 +0000)
Need to set the unansweredQueries to zero when we get a positive response so that we don't end up penalizing servers

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6747 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSCore/mDNS.c

index 6a34293..3a382e3 100755 (executable)
@@ -5172,6 +5172,7 @@ mDNSlocal void mDNSCoreReceiveResponse(mDNS *const m,
                                                                        q->RecentAnswerPkts = 0;
                                                                        q->ThisQInterval    = MaxQuestionInterval;
                                                                        q->RequestUnicast   = mDNSfalse;
+                                                                       q->unansweredQueries = 0;
                                                                        debugf("mDNSCoreReceiveResponse: Set MaxQuestionInterval for %##s (%s)", q->qname.c, DNSTypeName(q->qtype));
                                                                        break;
                                                                        }