2
0
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:
Evan Hunt
2014-01-30 17:03:32 -08:00
parent 4734976943
commit d0803df331
10 changed files with 72 additions and 5 deletions

View File

@@ -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: