summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorrandi <randi@FreeBSD.org>2010-06-10 20:13:10 +0000
committerrandi <randi@FreeBSD.org>2010-06-10 20:13:10 +0000
commitca4d850f228486408d3f8c84dd4096cdc6471b63 (patch)
tree2cd1e2115ca3991086af7bafa10a5ad0221c3876 /usr.sbin
parentda32c729a8e4c8fdfd1a30d4dcd2955d1366f22c (diff)
downloadFreeBSD-src-ca4d850f228486408d3f8c84dd4096cdc6471b63.zip
FreeBSD-src-ca4d850f228486408d3f8c84dd4096cdc6471b63.tar.gz
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
Diffstat (limited to 'usr.sbin')
-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