X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp.c;h=7712ade44165ec3787b7631c0210a6210d234ef9;hb=9f4db3cddf9931ef97ef0ea8f9dac1b63199407c;hp=2ada8b8f7ddf23213c815db756e81edb41ab37c2;hpb=66441c4c6fa1fc32f9df510c7665886c6eb50189;p=vpp.git diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index 2ada8b8f7dd..7712ade4416 100644 --- 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); }