PR: 2061
[openssl.git] / apps / rsa.c
index 4a6206bb6663d23ebdb89932574e02e9d2c72671..b3c8aff7e33aca03252bbb93c9ef24bf305b2a5b 100644 (file)
@@ -426,7 +426,7 @@ bad:
                BIO_printf(bio_err,"bad output format specified for outfile\n");
                goto end;
                }
-       if (!i)
+       if (i <= 0)
                {
                BIO_printf(bio_err,"unable to write key\n");
                ERR_print_errors(bio_err);