MT#55283 fix possible null dereference

closes ##1990

Change-Id: I57aaed9f5c73a1cf9833360f147c61248652784d
(cherry picked from commit 48ce74f794)
(cherry picked from commit 517595abfb)
mr13.4.1
Richard Fuchs 9 months ago
parent af8d53432b
commit cf057d6261

@ -3874,9 +3874,10 @@ static void __dtx_send_later(struct codec_timer *ct) {
dtxb->head_ts += dtxb->tspp; dtxb->head_ts += dtxb->tspp;
ts = dtxb->head_ts; ts = dtxb->head_ts;
} }
ps = mp_copy.stream; ps = mp_copy.stream;
struct call_media *media = ps->media; struct call_media *media = ps ? ps->media : NULL;
struct ssrc_entry_call *se = call_get_first_ssrc(&media->ssrc_hash_in); struct ssrc_entry_call *se = media ? call_get_first_ssrc(&media->ssrc_hash_in) : NULL;
log_info_stream_fd(mp_copy.sfd); log_info_stream_fd(mp_copy.sfd);
// copy out other fields so we can unlock // copy out other fields so we can unlock

Loading…
Cancel
Save