summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ya Kato <kato@win6.jp>2021-03-10 14:26:16 +0000
committerJay Satiro <raysatiro@yahoo.com>2021-03-10 16:52:09 -0500
commit6043dfa4f9471cf4f5da2492670aff26b16a94ab (patch)
tree6292b193e9342d6c4cb94eb93385728f01f39682
parenta2bbc3ac8c5498a42a50d831cb59078e05f3f1d7 (diff)
downloadcurl-6043dfa4f9471cf4f5da2492670aff26b16a94ab.tar.gz
ngtcp2: Fix build error due to change in ngtcp2_addr_init
ngtcp2/ngtcp2@b8d90a9 changed the function prototype. Closes https://github.com/curl/curl/pull/6716
-rw-r--r--lib/vquic/ngtcp2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c
index fc756f805..0539a57bb 100644
--- a/lib/vquic/ngtcp2.c
+++ b/lib/vquic/ngtcp2.c
@@ -808,8 +808,8 @@ CURLcode Curl_quic_connect(struct Curl_easy *data,
return CURLE_QUIC_CONNECT_ERROR;
ngtcp2_addr_init(&path.local, (struct sockaddr *)&qs->local_addr,
- qs->local_addrlen, NULL);
- ngtcp2_addr_init(&path.remote, addr, addrlen, NULL);
+ qs->local_addrlen);
+ ngtcp2_addr_init(&path.remote, addr, addrlen);
rc = ngtcp2_conn_client_new(&qs->qconn, &qs->dcid, &qs->scid, &path,
NGTCP2_PROTO_VER_MIN, &ng_callbacks,
@@ -1730,9 +1730,9 @@ static CURLcode ng_process_ingress(struct Curl_easy *data,
}
ngtcp2_addr_init(&path.local, (struct sockaddr *)&qs->local_addr,
- qs->local_addrlen, NULL);
+ qs->local_addrlen);
ngtcp2_addr_init(&path.remote, (struct sockaddr *)&remote_addr,
- remote_addrlen, NULL);
+ remote_addrlen);
rv = ngtcp2_conn_read_pkt(qs->qconn, &path, &pi, buf, recvd, ts);
if(rv != 0) {