]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a crash on unexpected incoming DNS message during XoT xfer
authorArtem Boldariev <artem@boldariev.com>
Thu, 11 Nov 2021 14:17:02 +0000 (16:17 +0200)
committerArtem Boldariev <artem@boldariev.com>
Wed, 24 Nov 2021 09:18:36 +0000 (11:18 +0200)
commit6c8a97c78f2e602bfda0f224f3dce685e2300001
tree1c395234a34aaa9e49ee83cf514fe119e5c886c0
parentce728098abee092397e19b6d0e89dc191ce3df94
Fix a crash on unexpected incoming DNS message during XoT xfer

This commit fixes a peculiar corner case in the client-side DoT code
because of which a crash could occur during a zone transfer. A junk
DNS message should be sent at the end of a zone transfer via TLS to
trigger the crash (abort).

This commit, hopefully, fixes that.

Also, this commit adds similar changes to the TCP DNS code, as it
shares the same origin and most of the logic.
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c