Module: kamailio Branch: master Commit: 269872e80d6c449e8019aaba57dfebee397cc828 URL: https://github.com/kamailio/kamailio/commit/269872e80d6c449e8019aaba57dfebee397cc828
Author: Xenofon Karamanos <x...@gilawa.com> Committer: Henning Westerholt <h...@gilawa.com> Date: 2025-08-08T11:17:34+02:00 tm: add validation for the evlreq_mode param --- Modified: src/modules/tm/tm.c --- Diff: https://github.com/kamailio/kamailio/commit/269872e80d6c449e8019aaba57dfebee397cc828.diff Patch: https://github.com/kamailio/kamailio/commit/269872e80d6c449e8019aaba57dfebee397cc828.patch --- diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c index 9250d812061..c91cb981b65 100644 --- a/src/modules/tm/tm.c +++ b/src/modules/tm/tm.c @@ -778,6 +778,12 @@ static int mod_init(void) tm_exec_time_check = (unsigned long)tm_exec_time_check_param * 1000; } + /* Check if evlreq_mode is set to correct range */ + if(_tm_evlreq_mode < 0 || _tm_evlreq_mode > TM_EVLREQ_BOTH_HBH) { + LM_ERR("evlreq_mode tm modparam must be in [0,%d]", TM_EVLREQ_BOTH_HBH); + return -1; + }; + /* checking if we have sufficient bitmap capacity for given * maximum number of branches */ if(sr_dst_max_branches + 1 > 31) { _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!