diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:46:51 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:46:51 +0000 |
commit | 6ba640bd53470faea4032f1611af8996b36b4980 (patch) | |
tree | c08bc9dcecffe9663963211f831b4e4a5db095b3 | |
parent | 68e47f5ec2154aa97ff298d4516ca0caf746e51a (diff) |
Valgrind cleanup: fix segfault on exit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11616 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/dns.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 4d06e02ab..b2dbf40a7 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -131,7 +131,8 @@ class RequestTimeout : public Timer } ~RequestTimeout() { - Tick(0); + if (ServerInstance->Res) + Tick(0); } void Tick(time_t) |