Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
tcp: protect against forced cleanups
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp.c
diff --git
a/src/vnet/tcp/tcp.c
b/src/vnet/tcp/tcp.c
index
2ada8b8
..
7712ade
100644
(file)
--- a/
src/vnet/tcp/tcp.c
+++ b/
src/vnet/tcp/tcp.c
@@
-1467,6
+1467,8
@@
tcp_handle_cleanups (tcp_worker_ctx_t * wrk, clib_time_type_t now)
break;
clib_fifo_sub2 (wrk->pending_cleanups, req);
tc = tcp_connection_get (req->connection_index, thread_index);
+ if (PREDICT_FALSE (!tc))
+ continue;
session_transport_delete_notify (&tc->connection);
tcp_connection_cleanup (tc);
}