From 17bdb60205e74211452967bc0e9c34faaeb33912 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Dec 2005 11:17:22 +0000 Subject: Fixed to do forwards properly with uninitialized data git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2248 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3