mirror of https://github.com/getdnsapi/getdns.git
One more unused when no TCP_FASTOPEN
This commit is contained in:
parent
26db6202a5
commit
6e9b1b5f53
|
@ -379,6 +379,7 @@ tcp_connect(getdns_upstream *upstream, getdns_transport_list_t transport)
|
||||||
if (transport == GETDNS_TRANSPORT_TCP)
|
if (transport == GETDNS_TRANSPORT_TCP)
|
||||||
return fd;
|
return fd;
|
||||||
#elif USE_OSX_TCP_FASTOPEN
|
#elif USE_OSX_TCP_FASTOPEN
|
||||||
|
(void)transport;
|
||||||
sa_endpoints_t endpoints;
|
sa_endpoints_t endpoints;
|
||||||
endpoints.sae_srcif = 0;
|
endpoints.sae_srcif = 0;
|
||||||
endpoints.sae_srcaddr = NULL;
|
endpoints.sae_srcaddr = NULL;
|
||||||
|
@ -394,6 +395,8 @@ tcp_connect(getdns_upstream *upstream, getdns_transport_list_t transport)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return fd;
|
return fd;
|
||||||
|
#else
|
||||||
|
(void)transport;
|
||||||
#endif
|
#endif
|
||||||
if (connect(fd, (struct sockaddr *)&upstream->addr,
|
if (connect(fd, (struct sockaddr *)&upstream->addr,
|
||||||
upstream->addr_len) == -1) {
|
upstream->addr_len) == -1) {
|
||||||
|
|
Loading…
Reference in New Issue