From b198b390106924df2279d94f28305c25c86b435e Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 1 Oct 2015 16:08:13 +0200 Subject: [PATCH] dialog: completed previous commit for spiral handling --- modules/dialog/dlg_handlers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c index 3117e331fe9..123330b582f 100644 --- a/modules/dialog/dlg_handlers.c +++ b/modules/dialog/dlg_handlers.c @@ -796,8 +796,10 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs) dlg = dlg_search(&callid, &ftag, &ttag, &dir); if(dlg) { if (detect_spirals) { - if (spiral_detected == 1) + if (spiral_detected == 1) { + dlg_hash_release(&callid); return 0; + } if ( dlg->state != DLG_STATE_DELETED ) { LM_DBG("Callid '%.*s' found, must be a spiraled request\n",