Better if you write correct code

This commit is contained in:
Quentin Dufour 2019-02-15 15:50:17 +01:00
parent 449c661cb3
commit fb6a9dfab0

View file

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