Skip to content

Commit

Permalink
MT#55283 fix possible null dereference
Browse files Browse the repository at this point in the history
closes #1864

Change-Id: If222c418d4b76724ba59e5fb11aeeb2c77c7e195
  • Loading branch information
rfuchs committed Sep 24, 2024
1 parent 1fc50a3 commit 87f9fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87f9fc1

Please sign in to comment.