Skip to content

Commit 18bcada

Browse files
authored
Merge pull request #2022 from l2dy/usrloc
usrloc: fix malloc size
2 parents 47d9ec9 + eecb094 commit 18bcada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/usrloc/ul_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static int mod_init(void)
424424

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

0 commit comments

Comments
 (0)