]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might... 11466/head
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>
Mon, 28 Mar 2022 18:28:15 +0000 (20:28 +0200)
commit8bed4b385814c10c927e970d5e3118385c2fa1b5
tree6faeddb855ec2e8702885237a52d0c78d4237fc6
parent6a33aa8ac1c57086667405e5190c97b0b92ceda7
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]