Module: kamailio
Branch: master
Commit: 6b82a103650fd0036490cf02dffcc5ad50c6f669
URL:
https://github.com/kamailio/kamailio/commit/6b82a103650fd0036490cf02dffcc5a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-15T09:09:04+02:00
auth_xkeys: use the right size when initializing xkeys list
---
Modified: src/modules/auth_xkeys/auth_xkeys.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6b82a103650fd0036490cf02dffcc5a…
Patch:
https://github.com/kamailio/kamailio/commit/6b82a103650fd0036490cf02dffcc5a…
---
diff --git a/src/modules/auth_xkeys/auth_xkeys.c b/src/modules/auth_xkeys/auth_xkeys.c
index 65a8dd16ce..ad3bed70d6 100644
--- a/src/modules/auth_xkeys/auth_xkeys.c
+++ b/src/modules/auth_xkeys/auth_xkeys.c
@@ -59,7 +59,7 @@ int auth_xkeys_list_init(void)
{
if(_auth_xkeys_list!=NULL)
return 0;
- _auth_xkeys_list = shm_malloc(sizeof(auth_xkey_t));
+ _auth_xkeys_list = shm_malloc(sizeof(auth_xkey_t*));
if(_auth_xkeys_list==NULL) {
LM_ERR("no more shared memory\n");
return -1;