summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dnsqueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 6d1ba0840..9c74d726c 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -244,13 +244,13 @@ void ZapThisDns(int fd)
if (x)
{
- if (x->resolver1.GetFD() != -1)
+ if (x->resolver1.GetFD() > 0)
{
log(DEBUG,"Whacked resolver1");
dns_close(x->resolver1.GetFD());
}
- if (x->resolver2.GetFD() != -1)
+ if (x->resolver2.GetFD() > 0)
{
log(DEBUG,"Whacked resolver2");
dns_close(x->resolver2.GetFD());