]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Better exception handling in handlePolicyHit() 9268/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 22 Jun 2020 13:09:13 +0000 (15:09 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 22 Jun 2020 13:15:55 +0000 (15:15 +0200)
commit24ff0d5034efb38038b3253ba36691c79ffcbea1
tree630577be196f512c0854efcfca267bdb4369c150
parent0ac327bc7aefda08d08b247fa1d7da434ed94d42
rec: Better exception handling in handlePolicyHit()

An ImmediateServFailException being raised during the call to
SyncRes::beginResolve() from handleRPZCustom() could lead to
the resolution process to stop without any response being sent:

Any other exception in a resolver context (www.example.net/A from 127.0.0.1:4242)

This commit turns into a ServFail answer instead.
pdns/pdns_recursor.cc