From: W.C.A. Wijngaards Date: Fri, 22 Jan 2021 12:11:41 +0000 (+0100) Subject: Fixup if brackets. X-Git-Tag: release-1.13.1rc1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a6f1ecafae3e34444089f2d81f4de49d9e94f3c;p=thirdparty%2Funbound.git Fixup if brackets. --- diff --git a/services/localzone.c b/services/localzone.c index 4369e23c1..fd2ff2bb6 100644 --- a/services/localzone.c +++ b/services/localzone.c @@ -2087,9 +2087,10 @@ void local_zones_del_data(struct local_zones* zones, /* no memory recycling for zone deletions ... */ d->rrsets = NULL; /* did we delete the soa record ? */ - if(query_dname_compare(d->name, z->name) == 0) + if(query_dname_compare(d->name, z->name) == 0) { z->soa = NULL; z->soa_negative = NULL; + } /* cleanup the empty nonterminals for this name */ del_empty_term(z, d, name, len, labs);