提交 ddc29125 编写于 作者: L Laszlo Papp 提交者: Rich Salz

RT2489: Remove extra "sig" local variable.

Reviewed-by: NDr. Stephen Henson <steve@openssl.org>
上级 fc979b93
...@@ -148,13 +148,12 @@ int OCSP_request_sign(OCSP_REQUEST *req, ...@@ -148,13 +148,12 @@ int OCSP_request_sign(OCSP_REQUEST *req,
unsigned long flags) unsigned long flags)
{ {
int i; int i;
OCSP_SIGNATURE *sig;
X509 *x; X509 *x;
if (!OCSP_request_set1_name(req, X509_get_subject_name(signer))) if (!OCSP_request_set1_name(req, X509_get_subject_name(signer)))
goto err; goto err;
if (!(req->optionalSignature = sig = OCSP_SIGNATURE_new())) goto err; if (!(req->optionalSignature = OCSP_SIGNATURE_new())) goto err;
if (key) if (key)
{ {
if (!X509_check_private_key(signer, key)) if (!X509_check_private_key(signer, key))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册