]> 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 <yadij@users.noreply.github.com>
Fri, 24 Nov 2017 18:17:56 +0000 (07:17 +1300)
src/icmp/net_db.cc

index 11078d31967483c22c2973587b9ef1dcc4f544b9..f47d9d279d117a31e3ac1ab3c6076eced329d2ac 100644 (file)
@@ -1284,13 +1284,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);
     HttpRequest *req = HttpRequest::FromUrl(uri, mx);
 
-    if (req == NULL) {
-        debugs(38, DBG_IMPORTANT, "netdbExchangeStart: Bad URI " << uri);
+    if (!req) {
+        debugs(38, DBG_IMPORTANT, MYNAME << ": Bad URI " << uri);
         return;
     }