From: Tatsuhiro Tsujikawa Date: Sun, 10 Apr 2022 21:09:40 +0000 (+0200) Subject: ngtcp2: remove remote_addr which is not used in a meaningful way X-Git-Tag: curl-7_83_0~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa25dab7fd73aeb39bbab0c5ea7c7471100b1be4;p=thirdparty%2Fcurl.git ngtcp2: remove remote_addr which is not used in a meaningful way Closes #8689 --- diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index a58cf7f079..5e72be2ab0 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -1718,7 +1718,6 @@ static CURLcode ng_flush_egress(struct Curl_easy *data, uint8_t out[NGTCP2_MAX_UDP_PAYLOAD_SIZE]; ngtcp2_path_storage ps; ngtcp2_tstamp ts = timestamp(); - struct sockaddr_storage remote_addr; ngtcp2_tstamp expiry; ngtcp2_duration timeout; int64_t stream_id; @@ -1807,7 +1806,6 @@ static CURLcode ng_flush_egress(struct Curl_easy *data, } } - memcpy(&remote_addr, ps.path.remote.addr, ps.path.remote.addrlen); while((sent = send(sockfd, (const char *)out, outlen, 0)) == -1 && SOCKERRNO == EINTR) ;