]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dns.cpp
Moved to B3 official
[user/henk/code/inspircd.git] / src / dns.cpp
index 13a80311ad75aa555b9d0d9051c7c5065c6305d7..6788937c60a0209f2f009882177a3760edddacda 100644 (file)
@@ -180,7 +180,6 @@ void DNS::dns_init() { /* on first call only: populates servers4 struct with up
                }
        }
        fclose(f);
-
 }
 
 void DNS::dns_init_2(const char* dnsserver) { /* populates servers4 struct with address from the given parameter */
@@ -725,6 +724,7 @@ std::string DNS::GetResult()
 {
         result = dns_getresult(this->fd);
         if (result) {
+               dns_close(this->fd);
                return result;
         } else {
                return "";