aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-12-05 12:05:57 -0800
committerDave Barach <openvpp@barachs.net>2019-12-06 13:31:35 +0000
commitf1910326d537ad7692d4a9b807ebbef93106acea (patch)
tree9c4672c6eab11d29eec5c63e2473bbcd37326be4
parent3eba7f1575a17b77924bf5be67b03b0227d04b78 (diff)
session: close for reset replies independent of state
Type: fix Change-Id: I8b8875f1dc9203dfbb443ac43df8250cbb0b1edc Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--src/vnet/session/session_node.c4
1 files changed, 2 insertions, 2 deletions
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);