]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dns.cpp
fix LoopCalls to not send param count thus avoiding a crash in command parser
[user/henk/code/inspircd.git] / src / dns.cpp
index 4bb2da02083ffe7a5c3f0958fca1ccb0c9ff4101..ad59a98e4a5936661c39f2b92ea2dbbb6aeb2a6c 100644 (file)
@@ -791,6 +791,7 @@ DNSInfo DNSRequest::ResultIsReady(DNSHeader &header, int length, int result_we_w
        rr.type = DNS_QUERY_NONE;
        rr.rdlength = 0;
        rr.ttl = 1;     /* GCC is a whiney bastard -- see the XXX below. */
+       rr.rr_class = 0; /* Same for VC++ */
 
        if (!(header.flags1 & FLAGS_MASK_QR))
                return std::make_pair((unsigned char*)NULL,"Not a query result");
@@ -933,7 +934,6 @@ DNS::~DNS()
        ServerInstance->SE->Shutdown(this, 2);
        ServerInstance->SE->Close(this);
        ServerInstance->Timers->DelTimer(this->PruneTimer);
-       delete this->PruneTimer;
 }
 
 CachedQuery* DNS::GetCache(const std::string &source)
@@ -1175,3 +1175,4 @@ unsigned long DNS::PRNG()
        return val;
 }
 
+