summaryrefslogtreecommitdiff
path: root/apps/rsa.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-01 00:25:24 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-01 00:25:24 +0000
commitb48315d9b6d23870c907e6dbf595b2288d42d920 (patch)
tree7ca6383cbfb50ffe9024b56b88c091aa05181cf5 /apps/rsa.c
parente8a682f223724f6be3927ed9774842d831e1bc8c (diff)
downloadopenssl-new-b48315d9b6d23870c907e6dbf595b2288d42d920.tar.gz
PR: 2061
Submitted by: Julia Lawall <julia@diku.dk> Approved by: steve@openssl.org Correct i2b_PVK_bio error handling in rsa.c, dsa.c
Diffstat (limited to 'apps/rsa.c')
-rw-r--r--apps/rsa.c2
1 files changed, 1 insertions, 1 deletions
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);