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
(parent:
d3252ad
)
tcp: fix connection reuse with no listener
81/29381/4
author
Florin Coras
<fcoras@cisco.com>
Sun, 11 Oct 2020 18:20:56 +0000
(11:20 -0700)
committer
Dave Barach
<openvpp@barachs.net>
Mon, 12 Oct 2020 15:02:41 +0000
(15:02 +0000)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I674872f68406ac778779a68d3ad991f41765d4e2
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
a86161c
..
948383b
100644
(file)
--- a/
src/vnet/tcp/tcp_input.c
+++ b/
src/vnet/tcp/tcp_input.c
@@
-2575,6
+2575,12
@@
tcp46_listen_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
lc = tcp_lookup_listener (b, tc->c_fib_index, is_ip4);
/* clean up the old session */
tcp_connection_del (tc);
+ /* listener was cleaned up */
+ if (!lc)
+ {
+ error = TCP_ERROR_NO_LISTENER;
+ goto done;
+ }
}
/* Make sure connection wasn't just created */