From 1e937f8a8818fdeb6d9c134d062472bf0a8d88a2 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 24 Sep 2019 12:45:14 -0700 Subject: session: fix cleanup in closing states Type: fix Change-Id: Iccc283bb98d3bb459a711ec2b74d6a32ad12903b Signed-off-by: Florin Coras (cherry picked from commit 54c93cfc2556d9c6d2cf472f51d4c2866a556ef6) --- src/vnet/tcp/tcp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/tcp/tcp.c') diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index f32a7094409..75a45a448bd 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -475,6 +475,8 @@ tcp_session_cleanup (u32 conn_index, u32 thread_index) { tcp_connection_t *tc; tc = tcp_connection_get (conn_index, thread_index); + if (!tc) + return; tcp_connection_set_state (tc, TCP_STATE_CLOSED); tcp_connection_cleanup (tc); } -- cgit 1.2.3-korg