aboutsummaryrefslogtreecommitdiff
path: root/src/dns.c
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-01-13 15:21:46 +0100
committerSebastian Geerken <devnull@localhost>2013-01-13 15:21:46 +0100
commit5797bbb234071775fe6148a29c9224c04912c8c1 (patch)
tree4bd03596f875f886f7951e43526341b128c087c7 /src/dns.c
parent657daf90e9a24bfeb3c38aca2682b5f36d86dff3 (diff)
parent927887827f2a440f1f1b39e58d87b12154098d4a (diff)
Update with main repo.
Diffstat (limited to 'src/dns.c')
-rw-r--r--src/dns.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dns.c b/src/dns.c
index 7ae19fe4..e288e8cc 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -217,9 +217,8 @@ void a_Dns_init(void)
/* If the IPv6 address family is not available there is no point
wasting time trying to connect to v6 addresses. */
int fd = socket(AF_INET6, SOCK_STREAM, 0);
- if (fd >= 0) {
- close(fd);
- }
+ if (fd >= 0)
+ dClose(fd);
}
#endif
}
@@ -510,8 +509,8 @@ void a_Dns_freeall(void)
dList_free(dns_cache[i].addr_list);
}
a_IOwatch_remove_fd(dns_notify_pipe[0], DIO_READ);
- close(dns_notify_pipe[0]);
- close(dns_notify_pipe[1]);
+ dClose(dns_notify_pipe[0]);
+ dClose(dns_notify_pipe[1]);
dFree(dns_cache);
}