]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: fix declaration of ‘result’ shadows a previous local
authorDaniel Stenberg <daniel@haxx.se>
Sat, 8 Jan 2022 09:36:35 +0000 (10:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 8 Jan 2022 13:41:33 +0000 (14:41 +0100)
Follow-up to 8fbd6feddfa587cfd3

Closes #8245

lib/vquic/ngtcp2.c

index 1596049b779165473b97fb0a255fe8e25bba1010..49ec37b81ed231bbdedacb00677a566015c64955 100644 (file)
@@ -1676,7 +1676,6 @@ static CURLcode ng_has_connected(struct Curl_easy *data,
   if(conn->ssl_config.verifyhost) {
 #ifdef USE_OPENSSL
     X509 *server_cert;
-    CURLcode result;
     server_cert = SSL_get_peer_certificate(conn->quic->ssl);
     if(!server_cert) {
       return CURLE_PEER_FAILED_VERIFICATION;