File nmap-5.00-fclose.patch of Package nmap

--- tcpip.cc
+++ tcpip.cc
@@ -3315,8 +3315,10 @@
 
   /* First let us try Linux-style /proc/net/route */
   routefp = fopen("/proc/net/route", "r");
-  if (routefp)
+  if (routefp) {
     routes = getsysroutes_proc(routefp, howmany);
+    fclose(routefp);
+  }
   else
     routes = getsysroutes_dnet(howmany);
 
openSUSE Build Service is sponsored by