Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 2013 00:36:12 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253950 - head/sys/netinet6
Message-ID:  <201308050036.r750aCXq058783@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Mon Aug  5 00:36:12 2013
New Revision: 253950
URL: http://svnweb.freebsd.org/changeset/base/253950

Log:
  Fix a panic in tmpaddrtimer.

Modified:
  head/sys/netinet6/in6_ifattach.c

Modified: head/sys/netinet6/in6_ifattach.c
==============================================================================
--- head/sys/netinet6/in6_ifattach.c	Mon Aug  5 00:28:03 2013	(r253949)
+++ head/sys/netinet6/in6_ifattach.c	Mon Aug  5 00:36:12 2013	(r253950)
@@ -932,6 +932,8 @@ in6_tmpaddrtimer(void *arg)
 
 	bzero(nullbuf, sizeof(nullbuf));
 	TAILQ_FOREACH(ifp, &V_ifnet, if_list) {
+		if (ifp->if_afdata[AF_INET6] == NULL)
+			continue;
 		ndi = ND_IFINFO(ifp);
 		if (bcmp(ndi->randomid, nullbuf, sizeof(nullbuf)) != 0) {
 			/*



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