summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/tcp/tcp_input.c')
-rw-r--r--src/vnet/tcp/tcp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c
index 0f7006a01fa..182062f1b42 100644
--- a/src/vnet/tcp/tcp_input.c
+++ b/src/vnet/tcp/tcp_input.c
@@ -1299,7 +1299,7 @@ tcp_segment_rcv (tcp_worker_ctx_t * wrk, tcp_connection_t * tc,
tc->data_segs_in += 1;
/* Make sure we don't consume trailing bytes */
- if (PREDICT_FALSE (b->current_length != n_data_bytes))
+ if (PREDICT_FALSE (b->current_length > n_data_bytes))
b->current_length = n_data_bytes;
/* Handle out-of-order data */