Skip to content

Commit 7305192

Browse files
committed
Fix wrong flags read on BIO write
1 parent 3ffa625 commit 7305192

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wolfio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ int SslBioSend(WOLFSSL* ssl, char *buf, int sz, void *ctx)
384384
}
385385

386386
/* If retry and write flags are set, return WANT_WRITE */
387-
if ((ssl->biord->flags & WOLFSSL_BIO_FLAG_WRITE) &&
388-
(ssl->biord->flags & WOLFSSL_BIO_FLAG_RETRY)) {
387+
if ((ssl->biowr->flags & WOLFSSL_BIO_FLAG_WRITE) &&
388+
(ssl->biowr->flags & WOLFSSL_BIO_FLAG_RETRY)) {
389389
return WOLFSSL_CBIO_ERR_WANT_WRITE;
390390
}
391391

0 commit comments

Comments
 (0)