Browse Source

MT#55283 fix possible null dereference

closes ##1990

Change-Id: I57aaed9f5c73a1cf9833360f147c61248652784d
pull/1998/head
Richard Fuchs 4 months ago
parent
commit
48ce74f794
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      daemon/codec.c

+ 3
- 2
daemon/codec.c View File

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


Loading…
Cancel
Save