Module: kamailio Branch: master Commit: 3eb9e1d34988ebeba9d4526da8f4d804846a7316 URL: https://github.com/kamailio/kamailio/commit/3eb9e1d34988ebeba9d4526da8f4d804846a7316
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2024-12-12T09:18:17+01:00 tm: check the type of contacts xavp value - GH #4063 --- Modified: src/modules/tm/t_serial.c --- Diff: https://github.com/kamailio/kamailio/commit/3eb9e1d34988ebeba9d4526da8f4d804846a7316.diff Patch: https://github.com/kamailio/kamailio/commit/3eb9e1d34988ebeba9d4526da8f4d804846a7316.patch --- diff --git a/src/modules/tm/t_serial.c b/src/modules/tm/t_serial.c index 4697455413b..7566f2b4ac6 100644 --- a/src/modules/tm/t_serial.c +++ b/src/modules/tm/t_serial.c @@ -643,6 +643,11 @@ int ki_t_next_contacts(struct sip_msg *msg) LM_DBG("no contacts in contacts_avp - we are done!\n"); return -2; } + if(xavp_list->val.type != SR_XTYPE_XAVP) { + LM_ERR("invalid value type (%d) for contacts xavp\n", + xavp_list->val.type); + return -3; + } xavp = xavp_list; _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
