From 6ba640bd53470faea4032f1611af8996b36b4980 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:46:51 +0000 Subject: Valgrind cleanup: fix segfault on exit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11616 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3