diff options
author | Alexey Stratulat <a.stratulat@ideco.ru> | 2025-01-20 18:34:25 +0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2025-01-20 21:49:32 +0000 |
commit | 32b003cc7c192248441f9663f39d93cc24b0a0a9 (patch) | |
tree | 577651cafe49dec2b583df27f668c8a01a3d96f2 | |
parent | e40f8a90bb0c39986c198fca8ad9b0b3c1658401 (diff) |
vcl: segfault correction in vcl_session_connected_handler
Svace found a bug related to the fact that the
vcl_segment_attach_session function is passed
a pointer to a session, which is null, because of this,
when using it, a segmentation error will occur inside the function.
This issue was fixed.
Type: fix
Change-Id: Icc68ced80611bb709c9fa7868816f003373077d4
Signed-off-by: Alexey Stratulat <a.stratulat@ideco.ru>
-rw-r--r-- | src/vcl/vppcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 0b2141614ee..e1eba2993ca 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -413,7 +413,7 @@ vcl_session_connected_handler (vcl_worker_t * wrk, }; vcl_segment_attach_session ( mp->segment_handle, mp->server_rx_fifo, mp->server_tx_fifo, - mp->vpp_event_queue_address, mp->mq_index, 0, session); + mp->vpp_event_queue_address, mp->mq_index, 0, &tmp_session); if (tmp_session.vpp_evt_q) vcl_send_session_disconnect (wrk, &tmp_session); return VCL_INVALID_SESSION_INDEX; |