From 90544bbdf09df23209109907ad249792ee8a0485 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Fri, 22 Nov 2024 17:16:26 -0700 Subject: [PATCH] JSSE: correct reset of closing state in WolfSSLInputStream/OutputStream --- src/java/com/wolfssl/provider/jsse/WolfSSLSocket.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/com/wolfssl/provider/jsse/WolfSSLSocket.java b/src/java/com/wolfssl/provider/jsse/WolfSSLSocket.java index c56adc26..d6eea669 100644 --- a/src/java/com/wolfssl/provider/jsse/WolfSSLSocket.java +++ b/src/java/com/wolfssl/provider/jsse/WolfSSLSocket.java @@ -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; } @@ -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; }