]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixes for dns queueing
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 2 Apr 2005 20:09:20 +0000 (20:09 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 2 Apr 2005 20:09:20 +0000 (20:09 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@955 e03df62e-2008-0410-955e-edbf42e46eb7

src/dnsqueue.cpp

index 58d55c1a5aad717e797227ddeb1a50c61879daa5..043ee8d4fe98a87ce421db5d08d3ff8a76425421 100644 (file)
@@ -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();
        }
 }