Fixes:
f89986b67dd5 ("Fix refreshing cached A(AAA) records that expire")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
continue;
/* Records other than A(AAA) are handled as services */
if (r->type != TYPE_A && r->type != TYPE_AAAA) {
continue;
/* Records other than A(AAA) are handled as services */
if (r->type != TYPE_A && r->type != TYPE_AAAA) {
+ if (cache_is_expired(r->time, r->ttl, 100))
+ cache_record_free(r);
continue;
}
if (r->refresh >= 100) {
continue;
}
if (r->refresh >= 100) {