Remove unnecessarily shadowed local variable

The same local X509 *cert variable can be used for both the X509_dup()
calls.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-09-07 16:40:33 +03:00
parent eb2223e0ec
commit 6a6566c7af

View file

@ -1099,7 +1099,6 @@ static int ocsp_resp_cb(SSL *s, void *arg)
certs = NULL;
}
if (ctx->peer_issuer_issuer) {
X509 *cert;
cert = X509_dup(ctx->peer_issuer_issuer);
if (cert && !sk_X509_push(certs, cert)) {
tls_show_errors(