Module: kamailio
Branch: master
Commit: 1c2b33615888dede0ea8abc098f6f910f810366b
URL:
https://github.com/kamailio/kamailio/commit/1c2b33615888dede0ea8abc098f6f91…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-11T21:30:33+02:00
tmx: t_precheck_trans() - explicit catch of internal return 0
---
Modified: src/modules/tmx/tmx_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1c2b33615888dede0ea8abc098f6f91…
Patch:
https://github.com/kamailio/kamailio/commit/1c2b33615888dede0ea8abc098f6f91…
---
diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c
index 68b1e418c66..2e46c82a99a 100644
--- a/src/modules/tmx/tmx_mod.c
+++ b/src/modules/tmx/tmx_mod.c
@@ -921,7 +921,7 @@ static int t_precheck_trans(sip_msg_t *msg)
ret = tmx_check_pretran(msg);
if(ret > 0)
return 1;
- return (ret - 1);
+ return (ret == 0) ? -1 : ret;
}
/**