diff --git a/tdns/tdns.cc b/tdns/tdns.cc index 30f4a97..261c02b 100644 --- a/tdns/tdns.cc +++ b/tdns/tdns.cc @@ -353,7 +353,7 @@ try thread udpServer(udpThread, local, &udplistener, &zones); for(;;) { - ComboAddress remote; + ComboAddress remote(local); // so it has room for IPv6 int client = SAccept(tcplistener, remote); thread t(tcpClientThread, local, remote, client, &zones); t.detach();