Merge branch 'artem-tls-streamdns-fixes-part2' into 'main'

TLS-related fixes from Stream DNS and Loop Manager branches

See merge request isc-projects/bind9!6616
This commit is contained in:
Artem Boldariev
2022-07-26 12:08:48 +00:00

View File

@@ -496,6 +496,7 @@ tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data,
}
}
}
errno = 0;
tls_status = SSL_get_error(sock->tlsstream.tls, rv);
saved_errno = errno;
@@ -854,7 +855,7 @@ isc__nm_tls_resumeread(isc_nmhandle_t *handle) {
REQUIRE(VALID_NMSOCK(handle->sock));
if (!atomic_compare_exchange_strong(&handle->sock->readpaused,
&(bool){ false }, false))
&(bool){ true }, false))
{
if (inactive(handle->sock)) {
return;