From 493aa4cbde991a9d2d8732631fe2d81b56b86eb6 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 22 Oct 2006 16:03:46 +0000 Subject: Default to 5 if none set git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5524 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dns.cpp b/src/dns.cpp index 3836e6f65..fb38a23b9 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -148,7 +148,7 @@ DNSRequest::DNSRequest(InspIRCd* Instance, DNS* dns, insp_inaddr server, int id, res = new unsigned char[512]; *res = 0; memcpy(&myserver, &server, sizeof(insp_inaddr)); - RequestTimeout* RT = new RequestTimeout(Instance->Config->dns_timeout, Instance, this, id, requests); + RequestTimeout* RT = new RequestTimeout(Instance->Config->dns_timeout ? Instance->Config->dns_timeout : 5, Instance, this, id, requests); Instance->Timers->AddTimer(RT); /* The timer manager frees this */ } -- cgit v1.2.3