From: Aki Tuomi Date: Tue, 29 Sep 2015 19:00:38 +0000 (+0300) Subject: Initialize DynListener members X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~12^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f41ec614383c7877ad43de06b54b72ca8fc30e55;p=pdns Initialize DynListener members fix cid#1030036 --- 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);