From: Amos Jeffries Date: Sat, 8 Jul 2017 10:00:57 +0000 (+1200) Subject: Remove unnecessary assert in NetDB X-Git-Tag: M-staged-PR71~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad049d4df8541a8a3b69c2db81c8e83538545c6e;p=thirdparty%2Fsquid.git Remove unnecessary assert in NetDB --- diff --git a/src/icmp/net_db.cc b/src/icmp/net_db.cc index c8cf5bfac4..65f8147211 100644 --- a/src/icmp/net_db.cc +++ b/src/icmp/net_db.cc @@ -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; }