]> granicus.if.org Git - pdns/commit
rec: Fix incomplete validation of cached entries
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Nov 2017 16:20:57 +0000 (17:20 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Nov 2017 16:20:57 +0000 (17:20 +0100)
commitf4de85a30424a60c006d7413c8526f6901d36846
treeeb6778126702c5f601764fc1cdfe3c5958b8ef34
parentfe6b104c8599464dd0863e6a2bd367caeae6a86f
rec: Fix incomplete validation of cached entries

When an entry retrieved from the cache or the negative cache has
not been previously validated because the initial query did not
ask for validation, we only validate answers if the current zone
state was Secure. This is fine, but we also need to update the
state of the current query if the current zone is Insecure or Bogus,
even though we don't need to validate the records.
pdns/recursordist/test-syncres_cc.cc
pdns/syncres.cc