MT#55283 fix possible null dereference

closes #1864

Change-Id: If222c418d4b76724ba59e5fb11aeeb2c77c7e195
rfuchs/test
Richard Fuchs 1 year ago
parent 1fc50a3188
commit 87f9fc18bf

@ -4704,7 +4704,7 @@ static int call_get_dialogue(struct call_monologue *monologues[2], call_t *call,
ft = t_hash_table_lookup(call->viabranches, viabranch);
/* top most subscription of tt */
if (!ft) {
struct call_media *media = tt->medias->pdata[0];
struct call_media *media = tt->medias->len ? tt->medias->pdata[0] : NULL;
if (media && media->media_subscriptions.head) {
struct media_subscription * ms = media->media_subscriptions.head->data;
if (ms->monologue)

Loading…
Cancel
Save