summaryrefslogtreecommitdiff
path: root/lib/vquic/ngtcp2.h
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2020-11-26 09:37:03 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-11-26 23:31:42 +0100
commit0cbd5d5c4f150be7f802ec8898a37445d258cb45 (patch)
treec4d65f9c267a2e1db1efa1c4a875fd2ea9b44e08 /lib/vquic/ngtcp2.h
parent0b60d3685e4705e2c0fe4ae9aa7cea4138fbce6d (diff)
downloadcurl-0cbd5d5c4f150be7f802ec8898a37445d258cb45.tar.gz
vquic/ngtcp2.h: define local_addr as sockaddr_storage
This field needs to be wide enough to hold sockaddr_in6 when connecting via IPv6. Otherwise, ngtcp2_conn_read_pkt will drop the packets because of the address mismatch: I00000022 [...] con ignore packet from unknown path We can safely assume that struct sockaddr_storage is available, as it is used in the public interface of ngtcp2. Closes #6250
Diffstat (limited to 'lib/vquic/ngtcp2.h')
-rw-r--r--lib/vquic/ngtcp2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vquic/ngtcp2.h b/lib/vquic/ngtcp2.h
index ce1bbef62..c6d4d12e6 100644
--- a/lib/vquic/ngtcp2.h
+++ b/lib/vquic/ngtcp2.h
@@ -58,7 +58,7 @@ struct quicsocket {
struct quic_handshake crypto_data[3];
/* the last TLS alert description generated by the local endpoint */
uint8_t tls_alert;
- struct sockaddr local_addr;
+ struct sockaddr_storage local_addr;
socklen_t local_addrlen;
nghttp3_conn *h3conn;