Finalize loop update

This commit is contained in:
Quentin Dufour 2019-02-20 17:50:01 +01:00
parent 20706800ee
commit 4b5534b213

View file

@ -35,7 +35,7 @@ failed_socks5:
}
}
void configure_tcp_clients(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
int configure_tcp_clients(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
int err, pos;
struct donar_client_ctx* app_ctx = (struct donar_client_ctx*) fdinfo->cat->app_ctx;
@ -102,7 +102,7 @@ void configure_tcp_clients(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdi
break;
}
return;
return 1;
on_socks5_err:
perror("An error occured while connecting to an Onion Service");
app_ctx->client_sock[pos].state = SOCKS5_STATE_ERR;