aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/EN-18:09/ip.patch
blob: 55ccfada465cfab45b1d180475b4a6fe3b7a2594 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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