]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
initalise serve_stale_ttl
authorMark Andrews <marka@isc.org>
Thu, 23 Nov 2017 05:11:49 +0000 (16:11 +1100)
committerMark Andrews <marka@isc.org>
Thu, 23 Nov 2017 05:11:49 +0000 (16:11 +1100)
lib/dns/cache.c

index 4f234e2b61b0db4bf9e15a495ca3f6d86d32c1c7..9d9fc1a5003705821ffaa3952914c06f90d2a0ff 100644 (file)
@@ -238,6 +238,7 @@ dns_cache_create3(isc_mem_t *cmctx, isc_mem_t *hmctx, isc_taskmgr_t *taskmgr,
        cache->references = 1;
        cache->live_tasks = 0;
        cache->rdclass = rdclass;
+       cache->serve_stale_ttl = 0;
 
        cache->stats = NULL;
        result = isc_stats_create(cmctx, &cache->stats,