Date: Thu, 17 Jun 2010 21:17:35 +0000 (UTC) From: Randi Harper <randi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r209273 - stable/8/usr.sbin/sysinstall Message-ID: <201006172117.o5HLHZp3051706@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: randi Date: Thu Jun 17 21:17:35 2010 New Revision: 209273 URL: http://svn.freebsd.org/changeset/base/209273 Log: MFC r209004: 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) Modified: stable/8/usr.sbin/sysinstall/tcpip.c Directory Properties: stable/8/usr.sbin/sysinstall/ (props changed) Modified: stable/8/usr.sbin/sysinstall/tcpip.c ============================================================================== --- stable/8/usr.sbin/sysinstall/tcpip.c Thu Jun 17 20:53:56 2010 (r209272) +++ stable/8/usr.sbin/sysinstall/tcpip.c Thu Jun 17 21:17:35 2010 (r209273) @@ -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?201006172117.o5HLHZp3051706>