]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup if brackets.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jan 2021 12:11:41 +0000 (13:11 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jan 2021 12:11:41 +0000 (13:11 +0100)
services/localzone.c

index 4369e23c1316840f090efbb6f21ba0811c63aeca..fd2ff2bb67f7d406420f81de7e17f27e5afa7992 100644 (file)
@@ -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);