Module: kamailio Branch: master Commit: 3eb9e1d34988ebeba9d4526da8f4d804846a7316 URL: https://github.com/kamailio/kamailio/commit/3eb9e1d34988ebeba9d4526da8f4d804846a7316
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> 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 -- 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!