summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-10-14 18:56:41 -0700
committerDave Wallace <dwallacelf@gmail.com>2017-10-17 08:09:55 +0000
commitade70e459deeaf143e5321603176c3fd3ee1503b (patch)
treed549ef60b705b304d1b0d0349d2b5a661fdccfed /src/vnet/session/session.c
parent0178efd690515a8410fb9b6e1fd96c3483871598 (diff)
session: return local transport endpoint in connect reply
Change-Id: I7794d5a0774017da4c1c15f45783a18754994ac8 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 5893b6558f0..34707e007e9 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1008,7 +1008,7 @@ session_type_from_proto_and_ip (transport_proto_t proto, u8 is_ip4)
transport_connection_t *
session_get_transport (stream_session_t * s)
{
- if (s->session_state >= SESSION_STATE_READY)
+ if (s->session_state != SESSION_STATE_LISTENING)
return tp_vfts[s->session_type].get_connection (s->connection_index,
s->thread_index);
return 0;