[tor-commits] [torsocks/master] Fix: wrong label when auth_socks5 fail
dgoulet at torproject.org
dgoulet at torproject.org
Wed May 13 13:27:54 UTC 2015
commit b722c703ba6fdcc71289d325c5f628415f6772ee
Author: David Goulet <dgoulet at ev0ke.net>
Date: Wed May 13 09:27:40 2015 -0400
Fix: wrong label when auth_socks5 fail
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 70014ce..0342aeb 100644
--- a/src/lib/torsocks.c
+++ b/src/lib/torsocks.c
@@ -565,7 +565,7 @@ int tsocks_tor_resolve(int af, const char *hostname, void *ip_addr)
if (socks5_method == SOCKS5_USER_PASS_METHOD) {
ret = auth_socks5(&conn);
if (ret < 0) {
- goto error;
+ goto end_close;
}
}
@@ -629,7 +629,7 @@ int tsocks_tor_resolve_ptr(const char *addr, char **ip, int af)
if (socks5_method == SOCKS5_USER_PASS_METHOD) {
ret = auth_socks5(&conn);
if (ret < 0) {
- goto error;
+ goto end_close;
}
}
More information about the tor-commits
mailing list