bio: pass flags on BIO_ctrl to make flush retriable
[openssl.git] / crypto / evp / bio_b64.c
index 0292c678c91ae4f1b0e3720500adfb94206a6f04..4822d37ea4bece2ca00ffd90d8a54d80ff596a67 100644 (file)
@@ -496,6 +496,7 @@ static long b64_ctrl(BIO *b, int cmd, long num, void *ptr)
         }
         /* Finally flush the underlying BIO */
         ret = BIO_ctrl(next, cmd, num, ptr);
+        BIO_copy_next_retry(b);
         break;
 
     case BIO_C_DO_STATE_MACHINE: