]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: Fix build error due to change in ngtcp2_addr_init
authorJun-ya Kato <kato@win6.jp>
Wed, 10 Mar 2021 14:26:16 +0000 (14:26 +0000)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 10 Mar 2021 21:52:09 +0000 (16:52 -0500)
ngtcp2/ngtcp2@b8d90a9 changed the function prototype.

Closes https://github.com/curl/curl/pull/6716

lib/vquic/ngtcp2.c

index fc756f805220b63b6b59f5cca140257f14a89c88..0539a57bb2e4ab7c891a01ec5f56d8db093caf83 100644 (file)
@@ -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) {