mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
protect geoip_elem use with HAVE_GEOIP
This commit is contained in:
@@ -337,11 +337,13 @@ dns_acl_merge(dns_acl_t *dest, dns_acl_t *source, isc_boolean_t pos)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_GEOIP
|
||||||
/* Duplicate GeoIP data */
|
/* Duplicate GeoIP data */
|
||||||
if (source->elements[i].type == dns_aclelementtype_geoip) {
|
if (source->elements[i].type == dns_aclelementtype_geoip) {
|
||||||
dest->elements[nelem + i].geoip_elem =
|
dest->elements[nelem + i].geoip_elem =
|
||||||
source->elements[i].geoip_elem;
|
source->elements[i].geoip_elem;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* reverse sense of positives if this is a negative acl */
|
/* reverse sense of positives if this is a negative acl */
|
||||||
if (!pos && source->elements[i].negative == ISC_FALSE) {
|
if (!pos && source->elements[i].negative == ISC_FALSE) {
|
||||||
|
Reference in New Issue
Block a user