From: Dr. Stephen Henson Date: Thu, 20 Feb 2003 13:37:48 +0000 (+0000) Subject: Fix bug in base64 bios during write an non blocking I/O: X-Git-Tag: BEN_FIPS_TEST_1~38^2~292 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5672e3a32152ec5f844cd0999494c129606ff9b9;p=oweals%2Fopenssl.git 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. --- 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) {