diff --git a/lib/dns/acl.c b/lib/dns/acl.c index 1064bce9a4..64cc08a792 100644 --- a/lib/dns/acl.c +++ b/lib/dns/acl.c @@ -337,11 +337,13 @@ dns_acl_merge(dns_acl_t *dest, dns_acl_t *source, isc_boolean_t pos) return result; } +#ifdef HAVE_GEOIP /* Duplicate GeoIP data */ if (source->elements[i].type == dns_aclelementtype_geoip) { dest->elements[nelem + i].geoip_elem = source->elements[i].geoip_elem; } +#endif /* reverse sense of positives if this is a negative acl */ if (!pos && source->elements[i].negative == ISC_FALSE) {