Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2010 21:10:56 +0000 (UTC)
From:      Randi Harper <randi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r209315 - releng/8.1/usr.sbin/sysinstall
Message-ID:  <201006182110.o5ILAuFw072914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: randi
Date: Fri Jun 18 21:10:56 2010
New Revision: 209315
URL: http://svn.freebsd.org/changeset/base/209315

Log:
  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)

Modified:
  releng/8.1/usr.sbin/sysinstall/tcpip.c
Directory Properties:
  releng/8.1/usr.sbin/sysinstall/   (props changed)

Modified: releng/8.1/usr.sbin/sysinstall/tcpip.c
==============================================================================
--- releng/8.1/usr.sbin/sysinstall/tcpip.c	Fri Jun 18 20:07:30 2010	(r209314)
+++ releng/8.1/usr.sbin/sysinstall/tcpip.c	Fri Jun 18 21:10:56 2010	(r209315)
@@ -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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006182110.o5ILAuFw072914>