From: brain Date: Wed, 7 Dec 2005 11:17:22 +0000 (+0000) Subject: Fixed to do forwards properly with uninitialized data X-Git-Tag: v2.0.23~9805 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=17bdb60205e74211452967bc0e9c34faaeb33912;p=user%2Fhenk%2Fcode%2Finspircd.git Fixed to do forwards properly with uninitialized data git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2248 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index d7b4119ad..0cdaf91c0 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -209,9 +209,9 @@ public: return true; } } - log(DEBUG,"Starting forwardlookup now for host '%s'...",hostname.c_str()); - if ((resolver2.GetFD() <= 0) && (hostname != "")) + if (hostname != "") { + log(DEBUG,"Starting forwardlookup now for host '%s'...",hostname.c_str()); resolver2.ForwardLookup(hostname); } }