X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Freq.c;h=b6a545fa381e0110ccab88488a6b911a56ee780c;hp=561cccc98fa5c82ca2d2525e0df01d9bcbe73243;hb=173f613b6a9029f34454b642ee4f3db6c6566fcb;hpb=3e3957816c131e536b0b5122b65dcbe28ee6e0ac diff --git a/apps/req.c b/apps/req.c index 561cccc98f..b6a545fa38 100644 --- a/apps/req.c +++ b/apps/req.c @@ -739,15 +739,15 @@ int req_main(int argc, char **argv) } if (verify && !x509) { - EVP_PKEY *pubkey = pkey; + EVP_PKEY *tpubkey = pkey; - if (pubkey == NULL) { - pubkey = X509_REQ_get0_pubkey(req); - if (pubkey == NULL) + if (tpubkey == NULL) { + tpubkey = X509_REQ_get0_pubkey(req); + if (tpubkey == NULL) goto end; } - i = X509_REQ_verify(req, pubkey); + i = X509_REQ_verify(req, tpubkey); if (i < 0) { goto end;