]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unnecessarily shadowed local variable
authorJouni Malinen <j@w1.fi>
Sun, 7 Sep 2014 13:40:33 +0000 (16:40 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 7 Sep 2014 13:40:33 +0000 (16:40 +0300)
The same local X509 *cert variable can be used for both the X509_dup()
calls.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/http_curl.c

index eb79b862d06b40a2cb52f56bf13a450a9a0bef18..1e767d5abd437ac6682f88c61dafd4b8d20e0969 100644 (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(