Page MenuHomeFreeBSD

D57823.1796595396.diff
No OneTemporary

Authored By
Unknown
Size
576 B
Referenced Files
None
Subscribers
None

D57823.1796595396.diff

diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -586,6 +586,8 @@
* n is at least 8, but might be larger based on
* ICMP_ADVLENPREF. See its definition in ip_icmp.h.
*/
+ _Static_assert(UCHAR_MAX < IPPROTO_MAX,
+ "ip_p is u_char; ip_ctlprotox covers all ip_p values");
if (ip_ctlprotox[icp->icmp_ip.ip_p] != NULL)
ip_ctlprotox[icp->icmp_ip.ip_p](icp);
break;

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 6, 10:16 PM (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42218987
Default Alt Text
D57823.1796595396.diff (576 B)

Event Timeline