1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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

View File

@ -1601,9 +1601,11 @@ static CURLcode ng_flush_egress(struct connectdata *conn, int sockfd,
case AF_INET: case AF_INET:
pktlen = NGTCP2_MAX_PKTLEN_IPV4; pktlen = NGTCP2_MAX_PKTLEN_IPV4;
break; break;
#ifdef ENABLE_IPV6
case AF_INET6: case AF_INET6:
pktlen = NGTCP2_MAX_PKTLEN_IPV6; pktlen = NGTCP2_MAX_PKTLEN_IPV6;
break; break;
#endif
default: default:
assert(0); assert(0);
} }