* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbtdb.c,v 1.181 2002/11/12 23:24:45 explorer Exp $ */
+/* $Id: rbtdb.c,v 1.182 2002/12/16 12:47:39 marka Exp $ */
/*
* Principal Author: Bob Halley
* in the cache if they are already exist. This
* prevents named being locked to old servers.
*/
- if (IS_CACHE(rbtdb) &&
+ if (IS_CACHE(rbtdb) && header->ttl > now &&
header->type == dns_rdatatype_ns &&
!header_nx && !newheader_nx &&
header->trust == newheader->trust &&
addedrdataset);
return (ISC_R_SUCCESS);
}
- if (IS_CACHE(rbtdb) &&
+ if (IS_CACHE(rbtdb) && header->ttl > now &&
(header->type == dns_rdatatype_a ||
header->type == dns_rdatatype_aaaa) &&
!header_nx && !newheader_nx &&