summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index c61edd023b35..08a477e74cf3 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -3791,6 +3791,8 @@ void tcp_parse_options(const struct net *net,
3791 length--; 3791 length--;
3792 continue; 3792 continue;
3793 default: 3793 default:
3794 if (length < 2)
3795 return;
3794 opsize = *ptr++; 3796 opsize = *ptr++;
3795 if (opsize < 2) /* "silly options" */ 3797 if (opsize < 2) /* "silly options" */
3796 return; 3798 return;