From: Florin Coras Date: Thu, 5 Dec 2019 20:05:57 +0000 (-0800) Subject: session: close for reset replies independent of state X-Git-Tag: v20.05-rc0~244 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F23821%2F4;p=vpp.git session: close for reset replies independent of state Type: fix Change-Id: I8b8875f1dc9203dfbb443ac43df8250cbb0b1edc Signed-off-by: Florin Coras --- diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c index a072bfa0f77..191be7ea3fc 100644 --- a/src/vnet/session/session_node.c +++ b/src/vnet/session/session_node.c @@ -309,8 +309,8 @@ session_mq_reset_reply_handler (void *data) session_parse_handle (mp->handle, &index, &thread_index); s = session_get_if_valid (index, thread_index); - /* Session was already closed or already cleaned up */ - if (!s || s->session_state != SESSION_STATE_TRANSPORT_CLOSING) + /* No session or not the right session */ + if (!s || s->session_state < SESSION_STATE_TRANSPORT_CLOSING) return; app_wrk = app_worker_get (s->app_wrk_index);