Skip to content

Commit

Permalink
MT#61371 prevent A <> A dialogue associations
Browse files Browse the repository at this point in the history
Change-Id: I1f6a7bb4dd369e9f32f2514cf8496ad574232364
  • Loading branch information
rfuchs committed Oct 30, 2024
1 parent 53a450e commit e714350
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -4713,6 +4713,9 @@ static int call_get_dialogue(struct call_monologue *monologues[2], call_t *call,
ft = __monologue_create(call);

tag_setup:
if (ft == tt)
return -1; // it's a hard error to have a monologue talking to itself

/* the fromtag monologue may be newly created, or half-complete from the totag, or
* derived from the viabranch. */
if (!ft->tag.s || str_cmp_str(&ft->tag, fromtag))
Expand Down

0 comments on commit e714350

Please sign in to comment.