]> git.ipfire.org Git - thirdparty/bind9.git/commit
rndc: sync ISC_R_CANCELED handling in callbacks
authorEvan Hunt <each@isc.org>
Thu, 13 Jan 2022 19:18:27 +0000 (11:18 -0800)
committerMichał Kępień <michal@isc.org>
Wed, 19 Jan 2022 13:30:17 +0000 (14:30 +0100)
commit289c1d33ee553cb75dc03318d46d45d33ccd9d24
tree00a84262348c60501a6afe7380f243321049a21d
parent710f62bf39a925c9a580192ec5ce8dee1ea66a06
rndc: sync ISC_R_CANCELED handling in callbacks

rndc_recvdone() is not treating the ISC_R_CANCELED result code as a
request to stop data processing, which may cause a crash when trying to
dereference ccmsg->buffer.  Fix by ensuring ISC_R_CANCELED results in an
early exit from rndc_recvdone().

Make sure the logic for handling ISC_R_CANCELED in rndc_recvnonce()
matches the one present in rndc_recvdone() to ensure consistent behavior
between these two sibling functions.
bin/rndc/rndc.c