From feef85771357625aef28f2c1c70eb2bb4dd17d5b Mon Sep 17 00:00:00 2001 From: msieben <4319079+msieben@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:34:33 +0000 Subject: [PATCH] [Source/crypto/SecureSocket] : correct check for invalid context --- Source/cryptalgo/SecureSocketPort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cryptalgo/SecureSocketPort.h b/Source/cryptalgo/SecureSocketPort.h index 052333263..49c5d5ed1 100644 --- a/Source/cryptalgo/SecureSocketPort.h +++ b/Source/cryptalgo/SecureSocketPort.h @@ -105,7 +105,7 @@ namespace Crypto { // Signal a state change, Opened, Closed or Accepted void StateChange() override { - if (IsOpen() && _context != nullptr) { // Initialize may not yet have happened + if (IsOpen() && _context == nullptr) { // Initialize may not yet have happened Initialize(); }