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

pdns/dynlistener.cc

index cc9edd35b4e734bc6393ebbd4ebab8990b193680..b160a056f977aad82db3fb0eeccd70ce98d43755 100644 (file)
@@ -164,10 +164,18 @@ DynListener::DynListener(const ComboAddress& local)
 {
   listenOnTCP(local);
   d_tcp=true;
+  d_client=-1;
+  d_tid=0;
+  d_ppid=0;
 }
 
 DynListener::DynListener(const string &progname)
 {
+  d_client=-1;
+  d_tid=0;
+  d_ppid=0;
+  d_s=-1;
+
   if(!progname.empty()) {
     string socketname=arg()["socket-dir"]+"/";
     cleanSlashes(socketname);