]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Fix the evaluation order for filtering policies (RPZ)
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Jan 2020 15:26:23 +0000 (16:26 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Jan 2020 15:26:23 +0000 (16:26 +0100)
commit06cfa23ffbc7ae170eee31f8130d74f0b07ec9d9
treec156e5f4c6ac3ac62cfba02712ba139f46d9d874
parent7c1219d249d2a45c2901048cd229e0545916a712
rec: Fix the evaluation order for filtering policies (RPZ)

Since 272e9a0034e8c5ea29d1ab7d24630424f178e926 we scanned all policies
for an exact match before looking for wildcard matches. It brokes
the promise that filtering policies are evaluated in the order they
are defined.
pdns/filterpo.cc
pdns/recursordist/test-filterpo_cc.cc