aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/srtp
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-02-16 17:12:01 -0800
committerDave Barach <openvpp@barachs.net>2022-02-17 19:07:30 +0000
commit7705b4916b6588de0caa594e2bfb684a8736d572 (patch)
treee7be230f062cf2d73e8b065541ba6caf108bc910 /src/plugins/srtp
parentb23ffd7ef216463c35b75c831e6a27e58971f4ec (diff)
tls http srtp: fix session index for listeners
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: If5e6d0e8c686ea93674d6201c38b3a4d1c4786a5
Diffstat (limited to 'src/plugins/srtp')
-rw-r--r--src/plugins/srtp/srtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/srtp/srtp.c b/src/plugins/srtp/srtp.c
index 82d9b3d8f04..c9987e8a47f 100644
--- a/src/plugins/srtp/srtp.c
+++ b/src/plugins/srtp/srtp.c
@@ -750,6 +750,7 @@ srtp_start_listen (u32 app_listener_index, transport_endpoint_cfg_t *tep)
lctx->srtp_session_handle = udp_al_handle;
lctx->app_session_handle = listen_session_get_handle (app_listener);
lctx->udp_is_ip4 = sep->is_ip4;
+ lctx->c_s_index = app_listener_index;
lctx->c_flags |= TRANSPORT_CONNECTION_F_NO_LOOKUP;
srtp_init_policy (lctx, (transport_endpt_cfg_srtp_t *) sep->ext_cfg->data);