mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 00:12:04 -04:00
protect geoip_elem use with HAVE_GEOIP
This commit is contained in:
parent
ab02ecbb30
commit
c2638d3d5a
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue