]> granicus.if.org Git - pdns/commitdiff
Initialize TCPReceiver#d_tid
authorAki Tuomi <cmouse@desteem.org>
Tue, 29 Sep 2015 19:09:24 +0000 (22:09 +0300)
committerAki Tuomi <cmouse@desteem.org>
Sat, 3 Oct 2015 22:01:12 +0000 (01:01 +0300)
fix cid#1030016

pdns/tcpreceiver.cc

index 213cfa0e56edca6b75911e2caf91f0ce1165ebbe..3d95cf0e6f229ed03b4b0eb45cf2455383257fb5 100644 (file)
@@ -1119,7 +1119,7 @@ TCPNameserver::TCPNameserver()
 {
 //  sem_init(&d_connectionroom_sem,0,::arg().asNum("max-tcp-connections"));
   d_connectionroom_sem = new Semaphore( ::arg().asNum( "max-tcp-connections" ));
-
+  d_tid=0;
   s_timeout=10;
   vector<string>locals;
   stringtok(locals,::arg()["local-address"]," ,");