diff options
Diffstat (limited to 'src/lib/libssl/src/apps/genrsa.c')
-rw-r--r-- | src/lib/libssl/src/apps/genrsa.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libssl/src/apps/genrsa.c b/src/lib/libssl/src/apps/genrsa.c index 643e20da2f..7e5dd2b239 100644 --- a/src/lib/libssl/src/apps/genrsa.c +++ b/src/lib/libssl/src/apps/genrsa.c | |||
@@ -112,12 +112,9 @@ genrsa_main(int argc, char **argv) | |||
112 | signal(SIGPIPE, SIG_IGN); | 112 | signal(SIGPIPE, SIG_IGN); |
113 | BN_GENCB_set(&cb, genrsa_cb, bio_err); | 113 | BN_GENCB_set(&cb, genrsa_cb, bio_err); |
114 | 114 | ||
115 | if (bio_err == NULL) | ||
116 | if ((bio_err = BIO_new(BIO_s_file())) != NULL) | ||
117 | BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); | ||
118 | |||
119 | if (!load_config(bio_err, NULL)) | 115 | if (!load_config(bio_err, NULL)) |
120 | goto err; | 116 | goto err; |
117 | |||
121 | if ((out = BIO_new(BIO_s_file())) == NULL) { | 118 | if ((out = BIO_new(BIO_s_file())) == NULL) { |
122 | BIO_printf(bio_err, "unable to create BIO for output\n"); | 119 | BIO_printf(bio_err, "unable to create BIO for output\n"); |
123 | goto err; | 120 | goto err; |