]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4741: TCP_MISS/500 when resolving raw-IP in URL
authorAmos Jeffries <yadij@users.noreply.github.com>
Sun, 23 Jul 2017 01:35:12 +0000 (13:35 +1200)
committerGitHub <noreply@github.com>
Sun, 23 Jul 2017 01:35:12 +0000 (13:35 +1200)
Add missing call to handler.forwardHits() in ipcache (#28)

src/ipcache.cc

index 4b4079ff6697649132b32940206a2f54961053d9..c3d4a2d37638d0865e9a89d940364acc78fbb2aa 100644 (file)
@@ -628,6 +628,7 @@ ipcache_nbgethostbyname_(const char *name, IpCacheLookupForwarder handler)
 
     if ((addrs = ipcacheCheckNumeric(name))) {
         debugs(14, 4, "ipcache_nbgethostbyname: BYPASS for '" << name << "' (already numeric)");
+        handler.forwardHits(*addrs);
         ++IpcacheStats.numeric_hits;
         const Dns::LookupDetails details; // no error, no lookup
         handler.finalCallback(addrs, details);