Skip to content

Commit

Permalink
usrloc: fix malloc size
Browse files Browse the repository at this point in the history
(cherry picked from commit eecb094)
  • Loading branch information
l2dy authored and liviuchircu committed Mar 12, 2020
1 parent 9e510b7 commit 4d98bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/usrloc/ul_mod.c
Expand Up @@ -403,7 +403,7 @@ static int mod_init(void)

if (cluster_mode != CM_NONE || rr_persist == RRP_LOAD_FROM_SQL) {
cid_keys = pkg_malloc(max_contact_delete *
(sizeof(db_key_t) * sizeof(db_val_t)));
(sizeof(db_key_t) + sizeof(db_val_t)));
if (cid_keys == NULL) {
LM_ERR("no more pkg memory\n");
return -1;
Expand Down

0 comments on commit 4d98bdb

Please sign in to comment.