From e7143500ea7f9fe8f1449b756bb7dc4622c45876 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 25 Oct 2024 11:22:25 -0400 Subject: [PATCH] MT#61371 prevent A <> A dialogue associations Change-Id: I1f6a7bb4dd369e9f32f2514cf8496ad574232364 --- daemon/call.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 496e302d7..2a09329eb 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -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))