Skip to content
Permalink
Browse files

ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6

  • Loading branch information
Harry Sintonen authored and bagder committed Feb 3, 2020
1 parent 9c27386 commit defe4c08f0f43b687d744b31571032599ba462cb
Showing with 2 additions and 0 deletions.
  1. +2 −0 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);
}

0 comments on commit defe4c0

Please sign in to comment.
You can’t perform that action at this time.