]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3955: Solaris EUI-48 lookup leaks FDs
authorPaul Z <paulz42@gmail.com>
Mon, 14 Apr 2014 06:57:22 +0000 (18:57 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 14 Apr 2014 06:57:22 +0000 (18:57 +1200)
src/eui/Eui48.cc

index aecff67abf895174aa78b8399c4088acc327b4a5..f97fe2b6b497ad536364fab23bf581f677cf3c0f 100644 (file)
@@ -361,6 +361,8 @@ Eui::Eui48::lookup(const Ip::Address &c)
 
         set(arpReq.arp_ha.sa_data, 6);
         return true;
+    } else {
+        close(tmpSocket);
     }
 
 #elif _SQUID_FREEBSD_ || _SQUID_NETBSD_ || _SQUID_OPENBSD_ || _SQUID_DRAGONFLY_ || _SQUID_KFREEBSD_