diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 22:30:45 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 22:30:45 +0000 |
commit | bc3c578208ce5da13f4cc3e0b04f46522accc7f8 (patch) | |
tree | c62cb2b0df51789aa81e8b0ed8be1a0a93917cb5 /apps/req.c | |
parent | 06e4024d98a8e142e354619a844c51429ed94bb6 (diff) | |
download | openssl-bc3c578208ce5da13f4cc3e0b04f46522accc7f8.zip openssl-bc3c578208ce5da13f4cc3e0b04f46522accc7f8.tar.gz openssl-bc3c578208ce5da13f4cc3e0b04f46522accc7f8.tar.bz2 |
Copy-n-paste bug (don't mix variable declarations and code). This sets the
callback structure just before it is needed.
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -713,7 +713,6 @@ bad: if (newreq && (pkey == NULL)) { BN_GENCB cb; - BN_GENCB_set(&cb, req_cb, bio_err); char *randfile = NCONF_get_string(req_conf,SECTION,"RANDFILE"); if (randfile == NULL) ERR_clear_error(); @@ -740,6 +739,7 @@ bad: if ((pkey=EVP_PKEY_new()) == NULL) goto end; #ifndef OPENSSL_NO_RSA + BN_GENCB_set(&cb, req_cb, bio_err); if (pkey_type == TYPE_RSA) { RSA *rsa = RSA_new(); |