Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
448bc81
)
tcp: fix test for trailing bytes
57/29857/2
author
Florin Coras
<fcoras@cisco.com>
Tue, 10 Nov 2020 03:03:09 +0000
(19:03 -0800)
committer
Florin Coras
<florin.coras@gmail.com>
Tue, 10 Nov 2020 16:46:48 +0000
(16:46 +0000)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I6455f2d38a2927f16fd4cb0e26b8560a2357cebe
src/vnet/tcp/tcp_input.c
patch
|
blob
|
history
diff --git
a/src/vnet/tcp/tcp_input.c
b/src/vnet/tcp/tcp_input.c
index
0f7006a
..
182062f
100644
(file)
--- 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 */