]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix error codes passed to connection callbacks
authorMichał Kępień <michal@isc.org>
Tue, 28 Dec 2021 14:09:50 +0000 (15:09 +0100)
committerMichał Kępień <michal@isc.org>
Tue, 28 Dec 2021 14:09:50 +0000 (15:09 +0100)
commitea89ab80ae3594b45ab751ae6b249e64e59ddf60
tree330b0df8c21d58a04f2844211dd1e64cb014ac8e
parentcb22ed049207c165c0f986a032e96c16986ffd48
Fix error codes passed to connection callbacks

Commit 9ee60e7a17bf34c7ef7f4d79e6a00ca45444ec8c erroneously introduced
duplicate conditions to several existing conditional statements
responsible for determining error codes passed to connection callbacks
upon failure.  Fix the affected expressions to ensure connection
callbacks are invoked with:

  - the ISC_R_SHUTTINGDOWN error code when a global netmgr shutdown is
    in progress,

  - the ISC_R_CANCELED error code when a specific operation has been
    canceled.

This does not fix any known bugs, it only adjusts the changes introduced
by commit 9ee60e7a17bf34c7ef7f4d79e6a00ca45444ec8c so that they match
its original intent.
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c