From fb6a9dfab0cf34ee804890d9fbac2cc1fc30eb93 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 15 Feb 2019 15:50:17 +0100 Subject: [PATCH] Better if you write correct code --- src/donar_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/donar_client.c b/src/donar_client.c index eb50fa0..d62d48e 100644 --- a/src/donar_client.c +++ b/src/donar_client.c @@ -12,7 +12,7 @@ void init_tcp_client(struct donar_client_ctx* ctx, int i) { while (1) { sock1 = create_tcp_client("127.0.0.1", "9050"); - if (err < 0) goto failed_socks5; + if (sock1 < 0) goto failed_socks5; ctx->client_sock[i].fd = sock1; ctx->client_sock[i].state = SOCKS5_STATE_NEW; evt_core_add_fd (&(ctx->evts), "configure-socks5", sock1);