Skip to content

Commit

Permalink
JSSE: correct reset of closing state in WolfSSLInputStream/OutputStream
Browse files Browse the repository at this point in the history
  • Loading branch information
cconlon committed Nov 23, 2024
1 parent 033f877 commit 90544bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/java/com/wolfssl/provider/jsse/WolfSSLSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -2501,6 +2501,8 @@ protected void close(boolean closeSocket) throws IOException {

if (closeSocket) {
if (this.socket == null || this.isClosed) {
/* Reset "is closing" state to false and return */
isClosing.set(false);
return;
}

Expand Down Expand Up @@ -2719,6 +2721,8 @@ protected void close(boolean closeSocket) throws IOException {

if (closeSocket) {
if (this.socket == null || this.isClosed) {
/* Reset "is closing" state to false and return */
isClosing.set(false);
return;
}

Expand Down

0 comments on commit 90544bb

Please sign in to comment.