diff options
author | Florin Coras <fcoras@cisco.com> | 2019-10-01 10:32:46 -0700 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-03 16:21:12 +0000 |
commit | 6af2886a08d8de21a2b03fa814e5ee3f4671a83e (patch) | |
tree | b06640320b8e16eedf4ce932b5833af496bf4fae /src | |
parent | f13634f1ab030e82709e3271de3154efcea12afb (diff) |
session: allow transport cleanup in any state
Type: fix
Third time's a charm
Change-Id: I31555a35d2b51f49a93a2a213c28896b0cad4c09
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit b5a2f7056967630c2834b0b4bf03520d96806c3e)
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/session/session.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 47f7326fffb..be62d929363 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1281,9 +1281,8 @@ session_transport_cleanup (session_t * s) { /* Delete from main lookup table before we axe the the transport */ session_lookup_del_session (s); - if (s->session_state < SESSION_STATE_TRANSPORT_DELETED) - transport_cleanup (session_get_transport_proto (s), s->connection_index, - s->thread_index); + transport_cleanup (session_get_transport_proto (s), s->connection_index, + s->thread_index); /* Since we called cleanup, no delete notification will come. So, make * sure the session is properly freed. */ session_free_w_fifos (s); |