Skip to content

Commit

Permalink
rtp_relay: handle FAKE_MSG replies
Browse files Browse the repository at this point in the history
Thanks go to @devoxy1 for reporing it in #3058
  • Loading branch information
razvancrainea committed Apr 18, 2023
1 parent c8458a3 commit 6afd0e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/rtp_relay/rtp_relay_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1697,8 +1697,10 @@ static int handle_rtp_relay_ctx_leg_reply(struct rtp_relay_ctx *ctx,
struct rtp_relay_session info;
memset(&info, 0, sizeof info);
info.msg = msg;
if (msg->REPLY_STATUS >= 300) {
if (msg == FAKED_REPLY || msg->REPLY_STATUS >= 300) {
if (!rtp_sess_late(sess)) {
if (msg == FAKED_REPLY)
info.msg = NULL;
rtp_relay_delete(&info, ctx, sess, type);
} else {
/* nothing to do */
Expand Down

0 comments on commit 6afd0e6

Please sign in to comment.