RT2489: Remove extra "sig" local variable.

Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
This commit is contained in:
Laszlo Papp 2014-08-18 17:21:32 -04:00 committed by Rich Salz
parent fc979b93ee
commit ddc29125a1

View File

@ -148,13 +148,12 @@ int OCSP_request_sign(OCSP_REQUEST *req,
unsigned long flags)
{
int i;
OCSP_SIGNATURE *sig;
X509 *x;
if (!OCSP_request_set1_name(req, X509_get_subject_name(signer)))
goto err;
if (!(req->optionalSignature = sig = OCSP_SIGNATURE_new())) goto err;
if (!(req->optionalSignature = OCSP_SIGNATURE_new())) goto err;
if (key)
{
if (!X509_check_private_key(signer, key))