Browse Source

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)

jaybeepee 9 years ago
parent
commit
c6a82c4231
1 changed files with 4 additions and 0 deletions
  1. 4 0
      modules/ims_auth/authims_mod.c

+ 4 - 0
modules/ims_auth/authims_mod.c

@@ -60,6 +60,7 @@
 #include "authims_mod.h"
 #include "authims_mod.h"
 #include "cxdx_mar.h"
 #include "cxdx_mar.h"
 #include "../../lib/ims/useful_defs.h"
 #include "../../lib/ims/useful_defs.h"
+#include "pvt_message.h"
 
 
 MODULE_VERSION
 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_realm = str_init("ims.smilecoms.com");
 str cxdx_dest_host = str_init("");
 str cxdx_dest_host = str_init("");
 
 
+struct _pv_req_data _pv_treq;
+
 //Only used if we want to force the Rx peer
 //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
 //Usually this is configured at a stack level and the first request uses realm routing
 str cxdx_forced_peer = str_init("");
 str cxdx_forced_peer = str_init("");
@@ -186,6 +189,7 @@ static int mod_init(void) {
 	}
 	}
 #endif
 #endif
 
 
+    pv_tmx_data_init();
     /* check the max_nonce_reuse param */
     /* check the max_nonce_reuse param */
     if (auth_used_vector_timeout < 0) {
     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);
         LM_WARN("bad value for auth_used_vector_timeout parameter (=%d), must be positive. Fixed to 3600\n", auth_used_vector_timeout);