Module: kamailio
Branch: master
Commit: e24df12d10d8b88582907481d161c6a2db5cf8f1
URL:
https://github.com/kamailio/kamailio/commit/e24df12d10d8b88582907481d161c6a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-03T11:00:34+01:00
db_redis: init allocated redis table structure
---
Modified: src/modules/db_redis/redis_table.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e24df12d10d8b88582907481d161c6a…
Patch:
https://github.com/kamailio/kamailio/commit/e24df12d10d8b88582907481d161c6a…
---
diff --git a/src/modules/db_redis/redis_table.c b/src/modules/db_redis/redis_table.c
index 33b097a9674..10dd7d57960 100644
--- a/src/modules/db_redis/redis_table.c
+++ b/src/modules/db_redis/redis_table.c
@@ -433,8 +433,7 @@ static struct str_hash_entry *db_redis_create_table(str *table)
pkg_free(e);
return NULL;
}
- t->entry_keys = NULL;
- t->types = NULL;
+ memset(t, 0, sizeof(redis_table_t));
if(str_hash_alloc(&t->columns, REDIS_HT_SIZE) != 0) {
LM_ERR("Failed to allocate memory for table schema hashtable\n");