Module: kamailio Branch: master Commit: b4619fe75ab7a8d87ea4b50450d6800e068bc62c URL: https://github.com/kamailio/kamailio/commit/b4619fe75ab7a8d87ea4b50450d6800e...
Author: Alexandr Dubovikov alexandr.dubovikov@gmail.com Committer: Alexandr Dubovikov alexandr.dubovikov@gmail.com Date: 2017-06-20T09:50:38+02:00
modules/topoh: fixed logical conditional and false jump in th_execute_event_route
---
Modified: src/modules/topoh/topoh_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/b4619fe75ab7a8d87ea4b50450d6800e... Patch: https://github.com/kamailio/kamailio/commit/b4619fe75ab7a8d87ea4b50450d6800e...
---
diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c index a749723cd8..23679a2b5d 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; }