[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torsocks/master] Fix: wrong label when auth_socks5 fail



commit b722c703ba6fdcc71289d325c5f628415f6772ee
Author: David Goulet <dgoulet@xxxxxxxxx>
Date:   Wed May 13 09:27:40 2015 -0400

    Fix: wrong label when auth_socks5 fail
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
 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;
 		}
 	}
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits