mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 03:50:00 -04: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:
parent
a165b66fc7
commit
a957511734
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue