]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6
authorHarry Sintonen <sintonen@iki.fi>
Mon, 3 Feb 2020 22:58:38 +0000 (00:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Feb 2020 15:09:39 +0000 (16:09 +0100)
lib/vquic/ngtcp2.c

index 764f95778c1d802d3824044f7869a8753e86c2bb..0788404c027b01f94d92beb7ad05335e81af525e 100644 (file)
@@ -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);
   }