summaryrefslogtreecommitdiffstats
path: root/crypto/evp/bio_b64.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-02-20 13:37:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-02-20 13:37:48 +0000
commit5672e3a32152ec5f844cd0999494c129606ff9b9 (patch)
treef4a3be4e6aacc89a017cf7db11b21dc3003c9f46 /crypto/evp/bio_b64.c
parentfbbfd86b67ab6b99608963ba6e37cca3f3da3882 (diff)
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.
Diffstat (limited to 'crypto/evp/bio_b64.c')
-rw-r--r--crypto/evp/bio_b64.c5
1 files changed, 1 insertions, 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)
{