From 835ba08b5f31e5a90d3741c722e972609a4501b8 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 23 Nov 2021 13:07:49 -0500 Subject: [PATCH] TT#14008 handle NULL selected_sfd in rtcp_send_report closes #1404 Change-Id: I282db8287f31d49eb26f0baf01951187577d7890 --- daemon/rtcp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/rtcp.c b/daemon/rtcp.c index 4a431eaf1..502eaeea7 100644 --- a/daemon/rtcp.c +++ b/daemon/rtcp.c @@ -1571,6 +1571,9 @@ void rtcp_send_report(struct call_media *media, struct ssrc_ctx *ssrc_out) { ps = next_ps; } + if (!ps->selected_sfd) + return; + media_update_stats(media); log_info_stream_fd(ps->selected_sfd);