Module: kamailio
Branch: 5.0
Commit: 64d0737d4dd20461c9a4053077d8ced2a7f7aaa1
URL:
https://github.com/kamailio/kamailio/commit/64d0737d4dd20461c9a4053077d8ced…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2017-03-07T19:57:34+01:00
core: initialize dns cache used memory
(cherry picked from commit d3710d365272566656dede08463386a1effeef5e)
---
Modified: src/core/dns_cache.c
---
Diff:
https://github.com/kamailio/kamailio/commit/64d0737d4dd20461c9a4053077d8ced…
Patch:
https://github.com/kamailio/kamailio/commit/64d0737d4dd20461c9a4053077d8ced…
---
diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index c4b910d..4273d2f 100644
--- a/src/core/dns_cache.c
+++ b/src/core/dns_cache.c
@@ -347,6 +347,9 @@ int init_dns_cache()
ret=E_OUT_OF_MEM;
goto error;
}
+
+ *dns_cache_mem_used=0;
+
#ifdef DNS_LU_LST
dns_last_used_lst=shm_malloc(sizeof(*dns_last_used_lst));
if (dns_last_used_lst==0){