|
@@ -409,7 +409,7 @@ static void tcp_options(const struct sk_buff *skb,
|
|
|
if (opsize < 2) /* "silly options" */
|
|
|
return;
|
|
|
if (opsize > length)
|
|
|
- break; /* don't parse partial options */
|
|
|
+ return; /* don't parse partial options */
|
|
|
|
|
|
if (opcode == TCPOPT_SACK_PERM
|
|
|
&& opsize == TCPOLEN_SACK_PERM)
|
|
@@ -469,7 +469,7 @@ static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff,
|
|
|
if (opsize < 2) /* "silly options" */
|
|
|
return;
|
|
|
if (opsize > length)
|
|
|
- break; /* don't parse partial options */
|
|
|
+ return; /* don't parse partial options */
|
|
|
|
|
|
if (opcode == TCPOPT_SACK
|
|
|
&& opsize >= (TCPOLEN_SACK_BASE
|