From: Jouni Malinen Date: Sun, 7 Sep 2014 13:40:33 +0000 (+0300) Subject: Remove unnecessarily shadowed local variable X-Git-Tag: hostap_2_3~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a6566c7af2d9aa5730b49f6e2b80783c4442274;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/utils/http_curl.c b/src/utils/http_curl.c index eb79b862d..1e767d5ab 100644 --- a/src/utils/http_curl.c +++ b/src/utils/http_curl.c @@ -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(