aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarry Sintonen <sintonen@iki.fi>2020-02-04 00:58:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-02-04 16:09:39 +0100
commitdefe4c08f0f43b687d744b31571032599ba462cb (patch)
tree780aad7e000117a6f8cc3f0d82e10d0211a07195 /lib
parent9c27386ef0be98237323ae8395deb6e44e78527d (diff)
ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6
Diffstat (limited to 'lib')
-rw-r--r--lib/vquic/ngtcp2.c2
1 files changed, 2 insertions, 0 deletions
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);
}