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 673aa5deac
commit e905227f36

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;