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 a165b66fc7
commit a957511734

View file

@ -860,7 +860,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;