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:
parent
da32c729a8
commit
ca4d850f22
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user