Skip to content

Commit

Permalink
Fix possible deadlock on udp socket opening error on rtp_forward (#3468)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Malaev <[email protected]>
  • Loading branch information
spscream and Alexander Malaev authored Oct 28, 2024
1 parent cb10621 commit 47f8f4d
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 @@ -5839,6 +5839,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 47f8f4d

Please sign in to comment.