rec: fix the use of an uninitialized filtering policy #4376

Merged
merged 1 commit into from Aug 29, 2016

Projects

None yet

2 participants

@rgacogne
Member

If wantsRPZ is set to false by the prerpz hook, dfepol might
not be correctly initialized. This leads to appliedPolicy not being
either before being passed to preresolve and postresolve.

Reported by Coverity.

@rgacogne rgacogne rec: fix the use of an uninitialized filtering policy
If `wantsRPZ` is set to false by the `prerpz` hook, `dfepol` might
not be correctly initialized. This leads to `appliedPolicy` not being
either before being passed to `preresolve` and `postresolve`.

Reported by Coverity.
1f1ca36
@pieterlexis pieterlexis merged commit 67e7a87 into PowerDNS:master Aug 29, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rgacogne rgacogne deleted the rgacogne:rec-uninit-policy branch Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment