Do not try to detach if the interface does not support IPv6.
Tested by: hselasky PR: usb/182820 Approved by: re (glebius)
This commit is contained in:
parent
84b354cb9a
commit
6378e1f369
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256258
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user