mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix c99ism added in 0b6144583b
This commit is contained in:
@@ -1985,8 +1985,10 @@ static ssize_t tcp_talk(int first, int last, int start, unsigned char *packet,
|
|||||||
trying again in non-FASTOPEN mode. */
|
trying again in non-FASTOPEN mode. */
|
||||||
if (fatal || (!data_sent && connect(serv->tcpfd, &serv->addr.sa, sa_len(&serv->addr)) == -1))
|
if (fatal || (!data_sent && connect(serv->tcpfd, &serv->addr.sa, sa_len(&serv->addr)) == -1))
|
||||||
{
|
{
|
||||||
|
int port;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
int port = prettyprint_addr(&serv->addr, daemon->addrbuff);
|
port = prettyprint_addr(&serv->addr, daemon->addrbuff);
|
||||||
my_syslog(LOG_DEBUG|MS_DEBUG, _("TCP connection failed to %s#%d"), daemon->addrbuff, port);
|
my_syslog(LOG_DEBUG|MS_DEBUG, _("TCP connection failed to %s#%d"), daemon->addrbuff, port);
|
||||||
|
|
||||||
close(serv->tcpfd);
|
close(serv->tcpfd);
|
||||||
|
|||||||
Reference in New Issue
Block a user