Permalink
Browse files

Do not try to detach if the interface does not support IPv6.

Tested by:	hselasky
PR:		usb/182820
Approved by:	re (glebius)
  • Loading branch information...
1 parent f8b6171 commit 7e16281655cc6db7075bf9d7e5c539f009307ebb @hrs-allbsd hrs-allbsd committed Oct 10, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 sys/netinet6/in6_ifattach.c
@@ -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);

0 comments on commit 7e16281

Please sign in to comment.