Skip to content

Commit 4d7a3ea

Browse files
committed
set this.closed = true when encountering FATAL_ALERT in unwrap() and in wrap() if inbound is already closed
1 parent e9daf8a commit 4d7a3ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ else if ((produced > 0) && !inBoundOpen &&
962962
* since we won't be sending anything after the alert went
963963
* out. */
964964
this.outBoundOpen = false;
965+
this.closed = true;
965966
}
966967
else if (produced == 0) {
967968
/* continue handshake or application data */
@@ -1671,6 +1672,7 @@ else if (ret < 0 &&
16711672
* close outbound since we won't be receiving
16721673
* any more data */
16731674
this.outBoundOpen = false;
1675+
this.closed = true;
16741676
}
16751677
/* Throw SSLHandshakeException if handshake not
16761678
* finished, otherwise throw SSLException for

0 commit comments

Comments
 (0)