From 7af42fd63e09131bbd24636f4c6d631049427d2c Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 2 Apr 2005 20:09:20 +0000 Subject: Fixes for dns queueing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@955 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/dnsqueue.cpp') diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 58d55c1a5..043ee8d4f 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -229,7 +229,9 @@ public: } else { - usr->dns_done = true; + usr = Find(u); + if (usr) + usr->dns_done = true; return true; } } @@ -240,9 +242,7 @@ public: { userrec* usr = Find(u); if (usr) - { return usr->fd; - } else return 0; } }; @@ -283,7 +283,6 @@ void dns_poll() dnsq[j].Reset(); } } - else dnsq[j].Reset(); } } -- cgit v1.2.3