Skip to content

Commit

Permalink
modules/ims_auth: fixed possible shm corruption
Browse files Browse the repository at this point in the history
	- in async mode getting SIP req from tx, working on shm orig request is bad
	- instead work on a copy in pkg (parsing, etc)
  • Loading branch information
jaybeepee committed Jun 6, 2016
1 parent f4f3b60 commit c6a82c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/ims_auth/authims_mod.c
Expand Up @@ -60,6 +60,7 @@
#include "authims_mod.h"
#include "cxdx_mar.h"
#include "../../lib/ims/useful_defs.h"
#include "pvt_message.h"

MODULE_VERSION

Expand Down Expand Up @@ -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("");
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c6a82c4

Please sign in to comment.