[tor-commits] [torsocks/master] Fix: return right value with localhost resolve
dgoulet at torproject.org
dgoulet at torproject.org
Fri Apr 4 22:40:27 UTC 2014
commit 3227c6c4e8f4f04bfc2c90ff406b82635331ad51
Author: David Goulet <dgoulet at ev0ke.net>
Date: Mon Feb 10 22:47:21 2014 -0500
Fix: return right value with localhost resolve
Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
src/lib/torsocks.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/torsocks.c b/src/lib/torsocks.c
index b98e0ed..4bbe072 100644
--- a/src/lib/torsocks.c
+++ b/src/lib/torsocks.c
@@ -371,6 +371,7 @@ int tsocks_tor_resolve(const char *hostname, uint32_t *ip_addr)
sizeof(uint32_t));
if (ret) {
/* Found to be a localhost name. */
+ ret = 0;
goto end;
}
More information about the tor-commits
mailing list