[sr-dev] git:master:c6a82c42: modules/ims_auth: fixed possible shm corruption

jaybeepee jason.penton at gmail.com
Mon Jun 6 11:32:48 CEST 2016


Module: kamailio
Branch: master
Commit: c6a82c42314e2b2c00d5fe68a5d3b7d06184575b
URL: https://github.com/kamailio/kamailio/commit/c6a82c42314e2b2c00d5fe68a5d3b7d06184575b

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2016-06-06T11:31:50+02:00

modules/ims_auth: fixed possible shm corruption
	- in async mode getting SIP req from tx, working on shm orig request is bad
	- instead work on a copy in pkg (parsing, etc)

---

Modified: modules/ims_auth/authims_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c6a82c42314e2b2c00d5fe68a5d3b7d06184575b.diff
Patch: https://github.com/kamailio/kamailio/commit/c6a82c42314e2b2c00d5fe68a5d3b7d06184575b.patch

---

diff --git a/modules/ims_auth/authims_mod.c b/modules/ims_auth/authims_mod.c
index 812644b..9b8d623 100644
--- a/modules/ims_auth/authims_mod.c
+++ b/modules/ims_auth/authims_mod.c
@@ -60,6 +60,7 @@
 #include "authims_mod.h"
 #include "cxdx_mar.h"
 #include "../../lib/ims/useful_defs.h"
+#include "pvt_message.h"
 
 MODULE_VERSION
 
@@ -98,6 +99,8 @@ unsigned char registration_default_algorithm_type = 1; /**< fixed default algori
 str cxdx_dest_realm = str_init("ims.smilecoms.com");
 str cxdx_dest_host = str_init("");
 
+struct _pv_req_data _pv_treq;
+
 //Only used if we want to force the Rx peer
 //Usually this is configured at a stack level and the first request uses realm routing
 str cxdx_forced_peer = str_init("");
@@ -186,6 +189,7 @@ static int mod_init(void) {
 	}
 #endif
 
+    pv_tmx_data_init();
     /* check the max_nonce_reuse param */
     if (auth_used_vector_timeout < 0) {
         LM_WARN("bad value for auth_used_vector_timeout parameter (=%d), must be positive. Fixed to 3600\n", auth_used_vector_timeout);




More information about the sr-dev mailing list