diff options
author | Florin Coras <fcoras@cisco.com> | 2019-09-24 07:18:51 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-09-24 15:52:48 +0000 |
commit | cac31a4a23241eb94e6982c049c0feb8b180c868 (patch) | |
tree | dfb7a0e533c5e0b97ba0dd509db689130f854c24 /src/vnet/session | |
parent | 9382ad9b390e17c8bfd8229342656348d059becb (diff) |
session: avoid transport cleanup if previously deleted
Type: fix
Change-Id: I485d38c7d9473e2ad1cbd8e17a788ec8d29ab001
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/session.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index f14e83fe976..cc9f4a825c4 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1283,8 +1283,9 @@ session_transport_cleanup (session_t * s) /* Delete from main lookup table before we axe the the transport */ session_lookup_del_session (s); - transport_cleanup (session_get_transport_proto (s), s->connection_index, - s->thread_index); + if (s->session_state != SESSION_STATE_TRANSPORT_DELETED) + 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); |