Module: kamailio
Branch: 4.4
Commit: 2e85e0b58170e490cf3544eb22d250bb94823474
URL:
https://github.com/kamailio/kamailio/commit/2e85e0b58170e490cf3544eb22d250b…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2017-03-07T19:58:20+01:00
core: initialize dns cache used memory
(cherry picked from commit d3710d365272566656dede08463386a1effeef5e)
---
Modified: dns_cache.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2e85e0b58170e490cf3544eb22d250b…
Patch:
https://github.com/kamailio/kamailio/commit/2e85e0b58170e490cf3544eb22d250b…
---
diff --git a/dns_cache.c b/dns_cache.c
index c4b910d..4273d2f 100644
--- a/dns_cache.c
+++ b/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){