diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2003-02-20 13:37:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2003-02-20 13:37:48 +0000 |
commit | 5672e3a32152ec5f844cd0999494c129606ff9b9 (patch) | |
tree | f4a3be4e6aacc89a017cf7db11b21dc3003c9f46 /crypto/evp | |
parent | fbbfd86b67ab6b99608963ba6e37cca3f3da3882 (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')
-rw-r--r-- | crypto/evp/bio_b64.c | 5 |
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) { |