diff options
Diffstat (limited to 'common/dns.c')
-rw-r--r-- | common/dns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/dns.c b/common/dns.c index 5b097b69..4250614e 100644 --- a/common/dns.c +++ b/common/dns.c @@ -1374,8 +1374,9 @@ void cache_found_zone(dhcp_ddns_ns_t *ns_cb) /* See if there's already such a zone. */ if (dns_zone_lookup(&zone, ns_cb->zname) == ISC_R_SUCCESS) { /* If it's not a dynamic zone, leave it alone. */ - if (zone->timeout == 0) - return; + if (zone->timeout == 0) { + goto cleanup; + } /* Remove any old addresses in case they've changed */ if (zone->primary) |