Skip to content

Commit

Permalink
[Source/crypto/SecureSocket] : correct check for invalid context
Browse files Browse the repository at this point in the history
  • Loading branch information
msieben committed Nov 21, 2024
1 parent 62f635d commit feef857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/cryptalgo/SecureSocketPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit feef857

Please sign in to comment.