From defe4c08f0f43b687d744b31571032599ba462cb Mon Sep 17 00:00:00 2001 From: Harry Sintonen Date: Tue, 4 Feb 2020 00:58:38 +0200 Subject: ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6 --- lib/vquic/ngtcp2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/vquic') diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 764f95778..0788404c0 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -1601,9 +1601,11 @@ static CURLcode ng_flush_egress(struct connectdata *conn, int sockfd, case AF_INET: pktlen = NGTCP2_MAX_PKTLEN_IPV4; break; +#ifdef ENABLE_IPV6 case AF_INET6: pktlen = NGTCP2_MAX_PKTLEN_IPV6; break; +#endif default: assert(0); } -- cgit v1.2.3