]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might... 11454/head auth-4.5.4
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 8 Mar 2022 14:36:48 +0000 (15:36 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 16 Mar 2022 14:53:49 +0000 (15:53 +0100)
commitfae4de96cb2e15f42b384a5af910bfb61291369d
tree74bf39984497fbc282c98b9b47d1f11699c71edd
parentb684b8f54ee6dbaf5235089c056f151015ec433b
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might result in a truncated zone.

As we might break from the loop early, we need to check if the end SOA was seen after the loop.
Also make sure we detect end conditions for both AXFR and IXFR style properly, to avoid processing
data after the end marker.
pdns/ixfr.cc
regression-tests.auth-py/runtests
regression-tests.auth-py/test_XFRIncomplete.py [new file with mode: 0644]
regression-tests.recursor-dnssec/test_RPZIncomplete.py [new file with mode: 0644]