]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might... 11453/head auth-4.4.3
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 15:23:54 +0000 (16:23 +0100)
commit57312d230d5c01d9aca58cb29ce87e23ccbbefd2
treec2eb8796dcb184b77eb286ae79ea33d6ede3dd11
parentd48ae68040780d28b68f8490d362beeaa3231a7c
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]