[tor-commits] [torsocks/master] Fix: use libc close() when resolving through Tor
dgoulet at torproject.org
dgoulet at torproject.org
Fri Apr 4 22:40:27 UTC 2014
commit 82fd72da042f383ad3d53daf48a47bbc5bb39e30
Author: David Goulet <dgoulet at ev0ke.net>
Date: Sat Feb 8 15:24:20 2014 -0500
Fix: use libc close() when resolving through Tor
Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
src/lib/torsocks.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/torsocks.c b/src/lib/torsocks.c
index 8d83bcd..bcf06a1 100644
--- a/src/lib/torsocks.c
+++ b/src/lib/torsocks.c
@@ -416,7 +416,7 @@ int tsocks_tor_resolve(const char *hostname, uint32_t *ip_addr)
goto error;
}
- ret = close(conn.fd);
+ ret = tsocks_libc_close(conn.fd);
if (ret < 0) {
PERROR("close");
}
@@ -465,7 +465,7 @@ int tsocks_tor_resolve_ptr(const char *addr, char **ip, int af)
goto error;
}
- ret = close(conn.fd);
+ ret = tsocks_libc_close(conn.fd);
if (ret < 0) {
PERROR("close");
}
More information about the tor-commits
mailing list