Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f311e380 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

netfilter: ipv6: nf_defrag: Kill frag queue



Release the frag queue if an error in IPv6 frag header is detected
so that it does not interfere with IPv6 frag reassembly and timeouts.

CRs-Fixed: 2168587
Change-Id: I4eed2e7ce383fddde2818880e3795ada9ed7fcb5
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 23e7657f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -263,6 +263,7 @@ static int nf_ct_frag6_queue(struct frag_queue *fq, struct sk_buff *skb,
			 * this case. -DaveM
			 */
			pr_debug("end of fragment not rounded to 8 bytes.\n");
			inet_frag_kill(&fq->q, &nf_frags);
			return -EPROTO;
		}
		if (end > fq->q.len) {