Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150319438
D31420.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
560 B
Referenced Files
None
Subscribers
None
D31420.diff
View Options
diff --git a/sys/netinet6/in6_mcast.c b/sys/netinet6/in6_mcast.c
--- a/sys/netinet6/in6_mcast.c
+++ b/sys/netinet6/in6_mcast.c
@@ -374,9 +374,18 @@
IN6_MULTI_LIST_LOCK();
IF_ADDR_WLOCK(ifp);
NET_EPOCH_ENTER(et);
- inm = in6m_lookup_locked(ifp, group);
+ /*
+ * Does ifp support IPv6 multicasts?
+ */
+ if (ifp->if_afdata[AF_INET6] == NULL)
+ error = ENODEV;
+ else
+ inm = in6m_lookup_locked(ifp, group);
NET_EPOCH_EXIT(et);
+ if (error != 0)
+ goto out_locked;
+
if (inm != NULL) {
/*
* If we already joined this group, just bump the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 1, 4:06 AM (10 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30651104
Default Alt Text
D31420.diff (560 B)
Attached To
Mode
D31420: Fix panic in IPv6 multicast code
Attached
Detach File
Event Timeline
Log In to Comment