session: fix local binds
Change-Id: I1d92bec29c718de7a517bbbb335d09c68c221c71
Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index 5780787..f96274a 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -710,7 +710,9 @@
else
{
local_session_t *local;
- local = application_get_local_listener_w_handle (handle);
+ app_listener_t *al;
+ al = app_listener_get_w_handle (handle);
+ local = application_get_local_listen_session (app, al->local_index);
mp->lcl_port = local->port;
mp->lcl_is_ip4 = session_type_is_ip4 (local->session_type);
}