[sr-dev] git:master:6b82a103: auth_xkeys: use the right size when initializing xkeys list
Daniel-Constantin Mierla
miconda at gmail.com
Sat Jul 15 09:33:35 CEST 2017
Module: kamailio
Branch: master
Commit: 6b82a103650fd0036490cf02dffcc5ad50c6f669
URL: https://github.com/kamailio/kamailio/commit/6b82a103650fd0036490cf02dffcc5ad50c6f669
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/6b82a103650fd0036490cf02dffcc5ad50c6f669.diff
Patch: https://github.com/kamailio/kamailio/commit/6b82a103650fd0036490cf02dffcc5ad50c6f669.patch
---
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;
More information about the sr-dev
mailing list