提交 b48315d9 编写于 作者: D Dr. Stephen Henson

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
上级 e8a682f2
...@@ -351,7 +351,7 @@ bad: ...@@ -351,7 +351,7 @@ bad:
BIO_printf(bio_err,"bad output format specified for outfile\n"); BIO_printf(bio_err,"bad output format specified for outfile\n");
goto end; goto end;
} }
if (!i) if (i <= 0)
{ {
BIO_printf(bio_err,"unable to write private key\n"); BIO_printf(bio_err,"unable to write private key\n");
ERR_print_errors(bio_err); ERR_print_errors(bio_err);
......
...@@ -426,7 +426,7 @@ bad: ...@@ -426,7 +426,7 @@ bad:
BIO_printf(bio_err,"bad output format specified for outfile\n"); BIO_printf(bio_err,"bad output format specified for outfile\n");
goto end; goto end;
} }
if (!i) if (i <= 0)
{ {
BIO_printf(bio_err,"unable to write key\n"); BIO_printf(bio_err,"unable to write key\n");
ERR_print_errors(bio_err); ERR_print_errors(bio_err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册