]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: remove remote_addr which is not used in a meaningful way
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Sun, 10 Apr 2022 21:09:40 +0000 (23:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 10 Apr 2022 21:09:41 +0000 (23:09 +0200)
Closes #8689

lib/vquic/ngtcp2.c

index a58cf7f079977bb3d4bb9a9236c34b5fe8230e10..5e72be2ab08be47f9751be63d69d27d46882da8a 100644 (file)
@@ -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)
       ;