diff options
author | Jack Lloyd <[email protected]> | 2019-10-22 12:33:43 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-10-22 12:33:43 -0400 |
commit | 228d29e54bc9024c88cd089d083828aabf209c4e (patch) | |
tree | c69304a0fe165d745f0c7b34fc8af5bfdedfd5ad /src/lib/tls | |
parent | cb34802ed24b0963ed5a0180236cabd593268987 (diff) |
Avoid situation where is_active and is_closed could both return true
GH #2171
Diffstat (limited to 'src/lib/tls')
-rw-r--r-- | src/lib/tls/tls_channel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/tls/tls_channel.cpp b/src/lib/tls/tls_channel.cpp index 9d3f2d30d..88b897227 100644 --- a/src/lib/tls/tls_channel.cpp +++ b/src/lib/tls/tls_channel.cpp @@ -278,6 +278,8 @@ void Channel::change_cipher_spec_writer(Connection_Side side) bool Channel::is_active() const { + if(is_closed()) + return false; return (active_state() != nullptr); } |