From 5672e3a32152ec5f844cd0999494c129606ff9b9 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 20 Feb 2003 13:37:48 +0000 Subject: [PATCH] Fix bug in base64 bios during write an non blocking I/O: if the write fails when flushing the buffer return the value to the application so it can retry. --- crypto/evp/bio_b64.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crypto/evp/bio_b64.c b/crypto/evp/bio_b64.c index 6e550f6a43..66004922eb 100644 --- a/crypto/evp/bio_b64.c +++ b/crypto/evp/bio_b64.c @@ -484,10 +484,7 @@ again: { i=b64_write(b,NULL,0); if (i < 0) - { - ret=i; - break; - } + return i; } if (BIO_get_flags(b) & BIO_FLAGS_BASE64_NO_NL) { -- 2.25.1