Skip to content

Commit

Permalink
Merge pull request from GHSA-wx5m-cj97-4wwg
Browse files Browse the repository at this point in the history
  • Loading branch information
trengginas authored Oct 6, 2022
1 parent c4d3498 commit d2acb9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pjmedia/src/pjmedia/transport_srtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1531,13 +1531,14 @@ static void srtp_rtp_cb(pjmedia_tp_cb_param *param)
pjmedia_srtp_crypto tx, rx;
pj_status_t status;

tx = srtp->tx_policy;
rx = srtp->rx_policy;

/* Stop SRTP first, otherwise srtp_start() will maintain current
* roll-over counter.
*/
pjmedia_transport_srtp_stop((pjmedia_transport*)srtp);

tx = srtp->tx_policy;
rx = srtp->rx_policy;
status = pjmedia_transport_srtp_start((pjmedia_transport*)srtp,
&tx, &rx);
if (status != PJ_SUCCESS) {
Expand Down

0 comments on commit d2acb9a

Please sign in to comment.