Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115583449
D35715.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
D35715.diff
View Options
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -588,12 +588,11 @@
IP6STAT_INC(ip6s_mext1);
} else {
if (m->m_next) {
- if (m->m_flags & M_LOOP) {
- IP6STAT_INC(ip6s_m2m[V_loif->if_index]);
- } else if (rcvif->if_index < IP6S_M2MMAX)
- IP6STAT_INC(ip6s_m2m[rcvif->if_index]);
- else
- IP6STAT_INC(ip6s_m2m[0]);
+ struct ifnet *ifp = (m->m_flags & M_LOOP) ? V_loif : rcvif;
+ int ifindex = ifp->if_index;
+ if (ifindex >= IP6S_M2MMAX)
+ ifindex = 0;
+ IP6STAT_INC(ip6s_m2m[ifindex]);
} else
IP6STAT_INC(ip6s_m1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 4:07 PM (12 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17806547
Default Alt Text
D35715.diff (641 B)
Attached To
Mode
D35715: netinet6: perform out-of-bounds check for lo0 multicast statitics
Attached
Detach File
Event Timeline
Log In to Comment