]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unnecessary assert in NetDB
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 8 Jul 2017 10:00:57 +0000 (22:00 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 8 Jul 2017 10:00:57 +0000 (22:00 +1200)
src/icmp/net_db.cc

index c8cf5bfac4abf5908f4772b0a5947092059161ce..65f81472115f32088e0a15b84ad6c925edc99e7e 100644 (file)
@@ -1272,13 +1272,12 @@ netdbExchangeStart(void *data)
     CachePeer *p = (CachePeer *)data;
     static const SBuf netDB("netdb");
     char *uri = internalRemoteUri(p->host, p->http_port, "/squid-internal-dynamic/", netDB);
-    debugs(38, 3, "netdbExchangeStart: Requesting '" << uri << "'");
-    assert(NULL != uri);
+    debugs(38, 3, "Requesting '" << uri << "'");
     const MasterXaction::Pointer mx = new MasterXaction(XactionInitiator::initIcmp);
     HttpRequestPointer req(HttpRequest::FromUrl(uri, mx));
 
     if (!req) {
-        debugs(38, DBG_IMPORTANT, "netdbExchangeStart: Bad URI " << uri);
+        debugs(38, DBG_IMPORTANT, MYNAME << ": Bad URI " << uri);
         return;
     }