Fix broken cache.

This commit is contained in:
Simon Kelley committed 2012-12-14 11:19:36 +00:00
1 parent 429798fd08
commit 1d6c639310
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -5,6 +5,8 @@ version 2.65
Fix failure to build with DHCP support excluded. Thanks to
Gustavo Zacarias for the patch.
Fix nasty regression in 2.64 which completely broke cacheing.
version 2.64
+1 -1
View File
@@ -394,7 +394,7 @@ struct crec *cache_insert(char *name, struct all_addr *addr,
int freed_all = flags & F_REVERSE;
int free_avail = 0;
if(daemon->max_cache_ttl < ttl)
if (daemon->max_cache_ttl != 0 && daemon->max_cache_ttl < ttl)
ttl = daemon->max_cache_ttl;
/* Don't log keys */