From b4619fe75ab7a8d87ea4b50450d6800e068bc62c Mon Sep 17 00:00:00 2001 From: Alexandr Dubovikov Date: Tue, 20 Jun 2017 09:50:38 +0200 Subject: [PATCH] modules/topoh: fixed logical conditional and false jump in th_execute_event_route --- src/modules/topoh/topoh_mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c index a749723cd8c..23679a2b5df 100644 --- a/src/modules/topoh/topoh_mod.c +++ b/src/modules/topoh/topoh_mod.c @@ -408,7 +408,7 @@ int th_msg_sent(sr_event_param_t *evp) obuf = (str*)evp->data; if(th_execute_event_route(NULL, evp)==1) { - goto done; + return 0; } memset(&msg, 0, sizeof(sip_msg_t)); @@ -519,7 +519,7 @@ int th_execute_event_route(sip_msg_t *msg, sr_event_param_t *evp) } } - if(_th_eventrt_outgoing<0 || keng==NULL) { + if(_th_eventrt_outgoing<0 && keng==NULL) { return 0; }