From f41ec614383c7877ad43de06b54b72ca8fc30e55 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 29 Sep 2015 22:00:38 +0300 Subject: [PATCH] Initialize DynListener members fix cid#1030036 --- pdns/dynlistener.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pdns/dynlistener.cc b/pdns/dynlistener.cc index cc9edd35b..b160a056f 100644 --- a/pdns/dynlistener.cc +++ b/pdns/dynlistener.cc @@ -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); -- 2.40.0