From: Dr. Stephen Henson Date: Thu, 1 Oct 2009 00:25:24 +0000 (+0000) Subject: PR: 2061 X-Git-Tag: OpenSSL-fips-2_0-rc1~1510 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=b48315d9b6d23870c907e6dbf595b2288d42d920 PR: 2061 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct i2b_PVK_bio error handling in rsa.c, dsa.c --- diff --git a/apps/dsa.c b/apps/dsa.c index 9f38e2b77a..1109346f78 100644 --- a/apps/dsa.c +++ b/apps/dsa.c @@ -351,7 +351,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 private key\n"); ERR_print_errors(bio_err); diff --git a/apps/rsa.c b/apps/rsa.c index 4a6206bb66..b3c8aff7e3 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -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);