From: Arnaldo Carvalho de Melo Date: Tue, 21 Mar 2006 06:30:51 +0000 (-0800) Subject: [DCCP] options: Fix handling of ackvecs in DATA packets X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5a6de915ba9ba828751ade5d3e874072a89a00a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [DCCP] options: Fix handling of ackvecs in DATA packets I.e. they should be just ignored, but we have to use 'break', not 'continue', as we have to possibly reset the mandatory flag. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- diff --git a/net/dccp/options.c b/net/dccp/options.c index 8867b6f43220..0161a18e739a 100644 --- a/net/dccp/options.c +++ b/net/dccp/options.c @@ -148,7 +148,7 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb) case DCCPO_ACK_VECTOR_0: case DCCPO_ACK_VECTOR_1: if (pkt_type == DCCP_PKT_DATA) - continue; + break; if (dp->dccps_options.dccpo_send_ack_vector && dccp_ackvec_parse(sk, skb, opt, value, len))