mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
[master] fixed geoip in blackhole ACLs
3722. [bug] Using geoip ACLs in a blackhole statement could cause a segfault. [RT #35272]
This commit is contained in:
@@ -408,6 +408,8 @@ dns_aclelement_match(const isc_netaddr_t *reqaddr,
|
||||
|
||||
#ifdef HAVE_GEOIP
|
||||
case dns_aclelementtype_geoip:
|
||||
if (env == NULL || env->geoip == NULL)
|
||||
return (ISC_FALSE);
|
||||
return (dns_geoip_match(reqaddr, env->geoip, &e->geoip_elem));
|
||||
#endif
|
||||
default:
|
||||
|
Reference in New Issue
Block a user