summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-02-14 13:24:43 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-02-15 15:38:10 +0000
commitbb65ba10fd32dbd22d7681a6573292a9afe491a3 (patch)
tree26fb51ef89e6dd8d148b8cff265991aef21d55a6 /src/vnet/session
parent3b3464eef5914d33e0925d6c2122c08b18c904f7 (diff)
Fix connexion segfault in session api affecting tcp_echo
Change-Id: If6d45f7f6e6dab70eecd6ec7241126968a34ad6b Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session')
-rwxr-xr-xsrc/vnet/session/session_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index 015b29f81d2..0285691182e 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -917,7 +917,8 @@ done:
rmp->handle = a->handle;
if (app && application_has_global_scope (app))
{
- s = listen_session_get_from_handle (a->handle);
+ app_listener_t* al = app_listener_get_w_handle(a->handle);
+ s = app_listener_get_session(al);
tc = listen_session_get_transport (s);
rmp->lcl_is_ip4 = tc->is_ip4;
rmp->lcl_port = tc->lcl_port;