<rdar://problem/7274054> Sleep Proxy + BTMM: Sharing services sometimes don't get...
authorcheshire@apple.com <cheshire@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Thu, 29 Oct 2009 22:12:42 +0000 (22:12 +0000)
committercheshire@apple.com <cheshire@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Thu, 29 Oct 2009 22:12:42 +0000 (22:12 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6761 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSCore/mDNS.c

index 6c94223..c07b3c3 100755 (executable)
@@ -8449,12 +8449,11 @@ mDNSexport mStatus uDNS_SetupDNSConfig(mDNS *const m)
                FORALL_CACHERECORDS(slot, cg, cr) if (!cr->resrec.InterfaceID) { mDNS_PurgeCacheResourceRecord(m, cr); count++; }
                LogInfo("uDNS_SetupDNSConfig: %s available; purged %d unicast DNS records from cache",
                        m->DNSServers ? "DNS server became" : "No DNS servers", count);
+
+               // Force anything that needs to get zone data to get that information again
+               RestartRecordGetZoneData(m);
                }
 
-       // If we no longer have any DNS servers, we need to force anything that needs to get zone data
-       // to get that information again (which will fail, since we have no more DNS servers)
-       if ((m->DNSServers == mDNSNULL) && (oldServers != mDNSNULL))    RestartRecordGetZoneData(m);
-       
        // Did our FQDN change?
        if (!SameDomainName(&fqdn, &m->FQDN))
                {