]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4056: assertion MemPools[type] from netdbExchangeStart()
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 3 Jun 2014 07:02:53 +0000 (01:02 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 3 Jun 2014 07:02:53 +0000 (01:02 -0600)
src/neighbors.cc

index 6a9abad7e64546e01f21332c62696ab9165dc8da..03998727f5bd2200ea95708ac203b03798bb533f 100644 (file)
@@ -1229,7 +1229,7 @@ peerDNSConfigure(const ipcache_addrs *ia, const DnsLookupDetails &, void *data)
         peerCountMcastPeersSchedule(p, 10);
 
 #if USE_ICMP
-    if (p->type != PEER_MULTICAST)
+    if (p->type != PEER_MULTICAST && IamWorkerProcess())
         if (!p->options.no_netdb_exchange)
             eventAddIsh("netdbExchangeStart", netdbExchangeStart, p, 30.0, 1);
 #endif