Module: kamailio
Branch: master
Commit: d3710d365272566656dede08463386a1effeef5e
URL:
https://github.com/kamailio/kamailio/commit/d3710d365272566656dede08463386a…
Author: grumvalski <federico.cabiddu(a)gmail.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-03-07T19:43:41+01:00
core: initialize dns cache used memory
---
Modified: src/core/dns_cache.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d3710d365272566656dede08463386a…
Patch:
https://github.com/kamailio/kamailio/commit/d3710d365272566656dede08463386a…
---
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){