Skip to content

Commit aae8b39

Browse files
committed
rtp_relay: fix broken ref taken with lock
This caused a deadlock when DLG registers were not able to be setup.
1 parent b49ed50 commit aae8b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/rtp_relay/rtp_relay_ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ static int rtp_relay_sess_success(struct rtp_relay_ctx *ctx,
17061706

17071707
if (rtp_relay_dlg_callbacks(dlg, ctx, to_tag) < 0) {
17081708
/* restore the state */
1709-
RTP_RELAY_CTX_REF(ctx);
1709+
RTP_RELAY_CTX_REF_UNSAFE(ctx, 1);
17101710
RTP_RELAY_PUT_TM_CTX(t, ctx);
17111711
return -1;
17121712
}

0 commit comments

Comments
 (0)