aboutsummaryrefslogtreecommitdiffstats
path: root/src/dnsqueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r--src/dnsqueue.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 285c556fe..1617a3843 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -95,6 +95,9 @@ public:
}
strlcpy(u,nick.c_str(),NICKMAX-1);
+#ifndef THREADED_DNS
+ usr->dns_fd = resolver1.GetFD();
+#endif
/* ASSOCIATE WITH DNS LOOKUP LIST */
if (resolver1.GetFD() != -1)
{
@@ -140,6 +143,9 @@ public:
WriteServ(usr->fd,"NOTICE Auth :*** Found your hostname");
}
usr->dns_done = true;
+#ifndef THREADED_DNS
+ usr->dns_fd = -1;
+#endif
return true;
}
}
@@ -150,6 +156,9 @@ public:
if (usr)
{
usr->dns_done = true;
+#ifndef THREADED_DNS
+ usr->dns_fd = -1;
+#endif
}
return true;
}
@@ -182,11 +191,16 @@ public:
return true;
}
}
- if (hostname != "")
+ if ((hostname != "") && (usr))
{
resolver2.ForwardLookup(hostname);
if (resolver2.GetFD() != -1)
+ {
dnslist[resolver2.GetFD()] = this;
+#ifndef THREADED_DNS
+ usr->dns_fd = resolver2.GetFD();
+#endif
+ }
}
}
}