aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/options.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-21 01:30:51 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-21 01:30:51 -0500
commite5a6de915ba9ba828751ade5d3e874072a89a00a (patch)
treecac9cbfd549fa7736fe5af0e5c0f7b0f83854f16 /net/dccp/options.c
parentaa837b5bbd92ca3791345e809d0027594faa738b (diff)
[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 <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/options.c')
-rw-r--r--net/dccp/options.c2
1 files changed, 1 insertions, 1 deletions
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)
148 case DCCPO_ACK_VECTOR_0: 148 case DCCPO_ACK_VECTOR_0:
149 case DCCPO_ACK_VECTOR_1: 149 case DCCPO_ACK_VECTOR_1:
150 if (pkt_type == DCCP_PKT_DATA) 150 if (pkt_type == DCCP_PKT_DATA)
151 continue; 151 break;
152 152
153 if (dp->dccps_options.dccpo_send_ack_vector && 153 if (dp->dccps_options.dccpo_send_ack_vector &&
154 dccp_ackvec_parse(sk, skb, opt, value, len)) 154 dccp_ackvec_parse(sk, skb, opt, value, len))