Skip to content

Commit 6afd0e6

Browse files
committed
rtp_relay: handle FAKE_MSG replies
Thanks go to @devoxy1 for reporing it in #3058
1 parent c8458a3 commit 6afd0e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/rtp_relay/rtp_relay_ctx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,8 +1697,10 @@ static int handle_rtp_relay_ctx_leg_reply(struct rtp_relay_ctx *ctx,
16971697
struct rtp_relay_session info;
16981698
memset(&info, 0, sizeof info);
16991699
info.msg = msg;
1700-
if (msg->REPLY_STATUS >= 300) {
1700+
if (msg == FAKED_REPLY || msg->REPLY_STATUS >= 300) {
17011701
if (!rtp_sess_late(sess)) {
1702+
if (msg == FAKED_REPLY)
1703+
info.msg = NULL;
17021704
rtp_relay_delete(&info, ctx, sess, type);
17031705
} else {
17041706
/* nothing to do */

0 commit comments

Comments
 (0)