2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

TLS: fix double resumption in isc__nm_tls_resumeread()

This commit fixes an obvious error in isc__nm_tls_resumeread() so that
read cannot be resumed twice.
This commit is contained in:
Artem Boldariev
2022-07-15 20:38:52 +03:00
parent 5d450cd0ba
commit c52c691b18

View File

@@ -855,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;