From: Harry Sintonen Date: Mon, 3 Feb 2020 22:58:38 +0000 (+0200) Subject: ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6 X-Git-Tag: curl-7_69_0~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=defe4c08f0f43b687d744b31571032599ba462cb;p=thirdparty%2Fcurl.git ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6 --- diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 764f95778c..0788404c02 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); }