From 730519211d9d225c6cc00e786cf500220b49de44 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Wed, 18 Feb 2026 15:08:06 +0000 Subject: [PATCH] Fix wrong flags read on BIO write --- src/wolfio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wolfio.c b/src/wolfio.c index 80d3b65610..095f55fa81 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -384,8 +384,8 @@ int SslBioSend(WOLFSSL* ssl, char *buf, int sz, void *ctx) } /* If retry and write flags are set, return WANT_WRITE */ - if ((ssl->biord->flags & WOLFSSL_BIO_FLAG_WRITE) && - (ssl->biord->flags & WOLFSSL_BIO_FLAG_RETRY)) { + if ((ssl->biowr->flags & WOLFSSL_BIO_FLAG_WRITE) && + (ssl->biowr->flags & WOLFSSL_BIO_FLAG_RETRY)) { return WOLFSSL_CBIO_ERR_WANT_WRITE; }