summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrandi <randi@FreeBSD.org>2010-06-18 21:10:56 +0000
committerrandi <randi@FreeBSD.org>2010-06-18 21:10:56 +0000
commit322c673680e7cf7828ca2ee1ccc2a09ecee1d0d4 (patch)
tree54aa1d4265763cfb38b289bba1a14b3498557f90
parentb9b22eda45b05c09140b33d0ce49c6c5efa40303 (diff)
downloadFreeBSD-src-322c673680e7cf7828ca2ee1ccc2a09ecee1d0d4.zip
FreeBSD-src-322c673680e7cf7828ca2ee1ccc2a09ecee1d0d4.tar.gz
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)
-rw-r--r--usr.sbin/sysinstall/tcpip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 1c1d676..4537815 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];
OpenPOWER on IntegriCloud