From 8f92f123b4548f92997bfba0dce061230730755f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 21 May 2015 11:06:15 -0400 Subject: [PATCH] fix segfault due to missing reverse tagging --- daemon/call.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 233e91f02..42b059069 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2917,8 +2917,10 @@ static struct call_monologue *call_get_monologue(struct call *call, const str *f * another monologue without to-tag (to be filled in later) */ new_branch: __C_DBG("create new \"other side\" monologue for viabranch "STR_FORMAT, STR_FMT(viabranch)); - ret->active_dialogue = __monologue_create(call); - __monologue_viabranch(ret->active_dialogue, viabranch); + os = __monologue_create(call); + ret->active_dialogue = os; + os->active_dialogue = ret; + __monologue_viabranch(os, viabranch); ok_check_tag: if (totag && totag->s && !ret->active_dialogue->tag.s)