From 57b12e8616ab84cda3b8b804e45384abfde2ace8 Mon Sep 17 00:00:00 2001 From: randi Date: Fri, 18 Jun 2010 21:10:56 +0000 Subject: [PATCH] MFC r209273: 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) Approved by: re (kensmith) git-svn-id: svn://svn.freebsd.org/base/releng/8.1@209315 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/sysinstall/tcpip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index 1c1d6766..45378153 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -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]; -- 2.42.0