]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might... 11455/head auth-4.6.1
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 10:38:15 +0000 (11:38 +0100)
commit89a28d75ea9b9a817003fc73c6d2381bd86f2a77
tree4a6f10592d4b38cada31731700ec21971600d3f5
parentd7f124609ffcc40fae92c7f6a935125ce2f0eac1
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]