Fix bug in base64 bios during write an non blocking I/O:
authorDr. Stephen Henson <steve@openssl.org>
Thu, 20 Feb 2003 13:37:48 +0000 (13:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 20 Feb 2003 13:37:48 +0000 (13:37 +0000)
if the write fails when flushing the buffer return the
value to the application so it can retry.

crypto/evp/bio_b64.c

index 6e550f6a430e5885aae9ff1051b593158422468e..66004922ebe6001cd783890dc30cfcdc855191b2 100644 (file)
@@ -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)
                        {