aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;