doc/share/security/patches/EN-18:09/ip.patch
2018-09-27 19:11:47 +00:00

13 lines
456 B
Diff

--- sys/netinet6/frag6.c.orig
+++ sys/netinet6/frag6.c
@@ -216,7 +216,9 @@
int offset = *offp, nxt, i, next;
int first_frag = 0;
int fragoff, frgpartlen; /* must be larger than u_int16_t */
- uint32_t hash, hashkey[sizeof(struct in6_addr) * 2 + 1], *hashkeyp;
+ uint32_t hashkey[(sizeof(struct in6_addr) * 2 +
+ sizeof(ip6f->ip6f_ident)) / sizeof(uint32_t)];
+ uint32_t hash, *hashkeyp;
struct ifnet *dstifp;
u_int8_t ecn, ecn0;
#ifdef RSS