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
This commit is contained in:
randi 2010-06-10 20:13:10 +00:00
parent da32c729a8
commit ca4d850f22

View File

@ -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];