ngtcp2: fix declaration of ‘result’ shadows a previous local

Follow-up to 8fbd6feddf

Closes #8245
This commit is contained in:
Daniel Stenberg 2022-01-08 10:36:35 +01:00
parent 1bb406c7ed
commit 4936e60bb9
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;