ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6

This commit is contained in:
Harry Sintonen 2020-02-04 00:58:38 +02:00 committed by Daniel Stenberg
parent 9c27386ef0
commit defe4c08f0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 2 additions and 0 deletions

View 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);
}