Skip to content

Commit 7ef5c79

Browse files
committed
Return success on write
1 parent 9e73a19 commit 7ef5c79

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

native/com_wolfssl_WolfSSLSession.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,9 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLSession_write
749749
break;
750750
}
751751

752+
if (ret >= 0) /* return if it is success */
753+
break;
754+
752755
if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE) {
753756

754757
sockfd = wolfSSL_get_fd(ssl);

0 commit comments

Comments
 (0)