Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112341199
D15440.id42584.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
682 B
Referenced Files
None
Subscribers
None
D15440.id42584.diff
View Options
Index: head/sys/netinet/in_mcast.c
===================================================================
--- head/sys/netinet/in_mcast.c
+++ head/sys/netinet/in_mcast.c
@@ -344,12 +344,13 @@
inm = NULL;
TAILQ_FOREACH(ifma, &((ifp)->if_multiaddrs), ifma_link) {
- if (ifma->ifma_addr->sa_family == AF_INET) {
- inm = (struct in_multi *)ifma->ifma_protospec;
- if (inm->inm_addr.s_addr == ina.s_addr)
- break;
- inm = NULL;
- }
+ if (ifma->ifma_addr->sa_family != AF_INET ||
+ ifma->ifma_protospec == NULL)
+ continue;
+ inm = (struct in_multi *)ifma->ifma_protospec;
+ if (inm->inm_addr.s_addr == ina.s_addr)
+ break;
+ inm = NULL;
}
return (inm);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 9:17 AM (4 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17191658
Default Alt Text
D15440.id42584.diff (682 B)
Attached To
Mode
D15440: Check that ifma_protospec != NULL in inm_lookup
Attached
Detach File
Event Timeline
Log In to Comment