Skip to content

Commit

Permalink
Fix possible deadlock on udp socket opening error on rtp_forward (mee…
Browse files Browse the repository at this point in the history
…techo#3468)

Co-authored-by: Alexander Malaev <[email protected]>
  • Loading branch information
2 people authored and natikaltura committed Nov 7, 2024
1 parent 8e50fb9 commit eb20600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/janus_videoroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -5867,6 +5867,7 @@ static json_t *janus_videoroom_process_synchronous_request(janus_videoroom_sessi
if(publisher->udp_sock <= 0 ||
(!ipv6_disabled && setsockopt(publisher->udp_sock, IPPROTO_IPV6, IPV6_V6ONLY, &v6only, sizeof(v6only)) != 0)) {
janus_mutex_unlock(&publisher->rtp_forwarders_mutex);
janus_mutex_unlock(&publisher->streams_mutex);
janus_refcount_decrease(&publisher->ref);
janus_mutex_unlock(&videoroom->mutex);
janus_refcount_decrease(&videoroom->ref);
Expand Down

0 comments on commit eb20600

Please sign in to comment.