From 6f6a0d136dfefe98631264092177344ed8d173a8 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 20 Nov 2018 12:49:24 +0100 Subject: [PATCH] tmx: do no suspend faked request --- src/modules/tmx/tmx_mod.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c index 7416e9efc9c..a40a00da6ed 100644 --- a/src/modules/tmx/tmx_mod.c +++ b/src/modules/tmx/tmx_mod.c @@ -37,6 +37,7 @@ #include "../../core/counters.h" #include "../../core/dset.h" #include "../../core/kemi.h" +#include "../../core/fmsg.h" #include "t_var.h" #include "tmx_pretran.h" @@ -705,6 +706,11 @@ static int ki_t_suspend(sip_msg_t* msg) unsigned int tlabel; tm_cell_t *t = 0; + if(faked_msg_match(msg)) { + LM_ERR("suspending a faked request is not allowed\n"); + return -1; + } + t=_tmx_tmb.t_gett(); if (t==NULL || t==T_UNDEFINED) {