diff options
author | randi <randi@FreeBSD.org> | 2010-06-10 20:13:10 +0000 |
---|---|---|
committer | randi <randi@FreeBSD.org> | 2010-06-10 20:13:10 +0000 |
commit | ca4d850f228486408d3f8c84dd4096cdc6471b63 (patch) | |
tree | 2cd1e2115ca3991086af7bafa10a5ad0221c3876 | |
parent | da32c729a8e4c8fdfd1a30d4dcd2955d1366f22c (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 3 |
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]; |