2552. [bug] zero-no-soa-ttl-cache was not being honoured.

[RT #19340]
This commit is contained in:
Mark Andrews 2009-02-15 23:13:32 +00:00
parent 692ce6c313
commit 45c3c12ed3
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2552. [bug] zero-no-soa-ttl-cache was not being honoured.
[RT #19340]
2551. [bug] Potential Reference leak on return. [RT #19341]
2550. [bug] Check --with-openssl=<path> finds <openssl/opensslv.h>.

View file

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: resolver.c,v 1.390 2009/01/27 22:29:59 jinmei Exp $ */
/* $Id: resolver.c,v 1.391 2009/02/15 23:13:32 marka Exp $ */
/*! \file */
@ -4610,7 +4610,8 @@ ncache_message(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
*/
ttl = fctx->res->view->maxncachettl;
if (fctx->type == dns_rdatatype_soa &&
covers == dns_rdatatype_any)
covers == dns_rdatatype_any &&
fctx->res->zero_no_soa_ttl)
ttl = 0;
result = ncache_adderesult(fctx->rmessage, fctx->cache, node,