summaryrefslogtreecommitdiffstats
path: root/apps/dsa.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-01 00:26:07 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-01 00:26:07 +0000
commit804196a418fc0ec6ceb936cc68057bf39312ead1 (patch)
treee8ef8846dcb15c4fbcc73d6c5543a0b17464c17a /apps/dsa.c
parent50d70c01d614ae393022c8a3635f3ea662b02311 (diff)
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/dsa.c')
-rw-r--r--apps/dsa.c2
1 files changed, 1 insertions, 1 deletions
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);