Date: Thu, 10 Jun 2010 20:13:10 +0000 (UTC) From: Randi Harper <randi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209004 - head/usr.sbin/sysinstall Message-ID: <201006102013.o5AKDA56053057@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: randi Date: Thu Jun 10 20:13:10 2010 New Revision: 209004 URL: http://svn.freebsd.org/changeset/base/209004 Log: Fix uninitialized variables that cause a crash when the network is initialized and sysinstall is not running as init. Submitted by: Nick Mills Approved by: cperciva (mentor) MFC after: 3 days Modified: head/usr.sbin/sysinstall/tcpip.c Modified: head/usr.sbin/sysinstall/tcpip.c ============================================================================== --- head/usr.sbin/sysinstall/tcpip.c Thu Jun 10 20:13:03 2010 (r209003) +++ head/usr.sbin/sysinstall/tcpip.c Thu Jun 10 20:13:10 2010 (r209004) @@ -732,6 +732,9 @@ tcpDeviceSelect(void) return (NULL); } + devs = deviceFind(NULL, DEVICE_TYPE_NETWORK); + cnt = deviceCount(devs); + if ((!RunningAsInit) && (variable_check("NETWORK_CONFIGURED=NO") != TRUE)) { if (!msgYesNo("Running multi-user, assume that the network is already configured?")) return devs[0];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006102013.o5AKDA56053057>