]> git.ipfire.org Git - thirdparty/bind9.git/commit
CID 352848: split xfrin_start() and remove dead code
authorArtem Boldariev <artem@boldariev.com>
Tue, 24 May 2022 08:39:26 +0000 (11:39 +0300)
committerArtem Boldariev <artem@boldariev.com>
Wed, 25 May 2022 09:38:38 +0000 (12:38 +0300)
commit98f758ed4fdc1ed21516bf3c053ce9fde6c5ce35
treeffc10cc1d578d86b2ac1da042b4919fadec648e3
parent095b608412b94ae1437458714e9e2461ff998a48
CID 352848: split xfrin_start() and remove dead code

This commit separates TLS context creation code from xfrin_start() as
it has become too large and hard to follow into a new
function (similarly how it is done in dighost.c)

The dead code has been removed from the cleanup section of the TLS
creation code:

* there is no way 'tlsctx' can equal 'found';
* there is no way 'sess_cache' can be non-NULL in the cleanup section.

Also, it fixes a bug in the older version of the code, where TLS
client session context fetched from the cache would not get passed to
isc_nm_tlsdnsconnect().
lib/dns/xfrin.c
lib/isc/include/isc/tls.h