svn commit: r256258 - head/sys/netinet6

Hiroki Sato hrs at FreeBSD.org
Thu Oct 10 09:43:15 UTC 2013


Author: hrs
Date: Thu Oct 10 09:43:15 2013
New Revision: 256258
URL: http://svnweb.freebsd.org/changeset/base/256258

Log:
  Do not try to detach if the interface does not support IPv6.
  
  Tested by:	hselasky
  PR:		usb/182820
  Approved by:	re (glebius)

Modified:
  head/sys/netinet6/in6_ifattach.c

Modified: head/sys/netinet6/in6_ifattach.c
==============================================================================
--- head/sys/netinet6/in6_ifattach.c	Thu Oct 10 09:42:41 2013	(r256257)
+++ head/sys/netinet6/in6_ifattach.c	Thu Oct 10 09:43:15 2013	(r256258)
@@ -809,6 +809,9 @@ in6_ifdetach(struct ifnet *ifp)
 	struct sockaddr_in6 sin6;
 	struct in6_multi_mship *imm;
 
+	if (ifp->if_afdata[AF_INET6] == NULL)
+		return;
+
 	/* remove neighbor management table */
 	nd6_purge(ifp);
 


More information about the svn-src-head mailing list