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);