diff --git a/bin/named/query.c b/bin/named/query.c index f252200..3bae106 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -7623,7 +7623,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype) /* * If we have a zero ttl from the cache refetch it. */ - if (!is_zone && event == NULL && rdataset->ttl == 0 && + if (!is_zone && !resuming && rdataset->ttl == 0 && RECURSIONOK(client)) { if (dns_rdataset_isassociated(rdataset)) @@ -8065,7 +8065,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype) /* * If we have a zero ttl from the cache refetch it. */ - if (!is_zone && event == NULL && rdataset->ttl == 0 && + if (!is_zone && !resuming && rdataset->ttl == 0 && RECURSIONOK(client)) { if (dns_rdataset_isassociated(rdataset))