Author: randi
Date: Wed Apr 21 12:02:45 2010
New Revision: 206995
URL: http://svn.freebsd.org/changeset/base/206995

Log:
  Fix bug introduced in r198317: Don't leak a file descriptor after scanning 
for network devices.
  
  Approved by:  cperciva (mentor)
  MFC after:    1 week (original commit + bugfix)

Modified:
  head/usr.sbin/sysinstall/tcpip.c

Modified: head/usr.sbin/sysinstall/tcpip.c
==============================================================================
--- head/usr.sbin/sysinstall/tcpip.c    Wed Apr 21 11:50:13 2010        
(r206994)
+++ head/usr.sbin/sysinstall/tcpip.c    Wed Apr 21 12:02:45 2010        
(r206995)
@@ -683,6 +683,8 @@ tcpDeviceScan(void)
                }
        }
 
+       close(s);
+
        freeifaddrs(ifap);
 
        return (NULL);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to