Fix bug in base64 bios during write an non blocking I/O:
[openssl.git] / 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)
                        {