From: Geoff Thorpe Date: Wed, 29 Oct 2003 22:30:45 +0000 (+0000) Subject: Copy-n-paste bug (don't mix variable declarations and code). This sets the X-Git-Tag: BEN_FIPS_TEST_4^2~11^2~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bc3c578208ce5da13f4cc3e0b04f46522accc7f8;p=oweals%2Fopenssl.git Copy-n-paste bug (don't mix variable declarations and code). This sets the callback structure just before it is needed. --- diff --git a/apps/req.c b/apps/req.c index 29076266fb..bbef942860 100644 --- a/apps/req.c +++ b/apps/req.c @@ -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();