diff options
-rw-r--r-- | src/dnsqueue.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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(); } } |