mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +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:
@@ -855,7 +855,7 @@ isc__nm_tls_resumeread(isc_nmhandle_t *handle) {
|
|||||||
REQUIRE(VALID_NMSOCK(handle->sock));
|
REQUIRE(VALID_NMSOCK(handle->sock));
|
||||||
|
|
||||||
if (!atomic_compare_exchange_strong(&handle->sock->readpaused,
|
if (!atomic_compare_exchange_strong(&handle->sock->readpaused,
|
||||||
&(bool){ false }, false))
|
&(bool){ true }, false))
|
||||||
{
|
{
|
||||||
if (inactive(handle->sock)) {
|
if (inactive(handle->sock)) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user