diff --git a/src/donar_client.c b/src/donar_client.c index fa9cf14..088d124 100644 --- a/src/donar_client.c +++ b/src/donar_client.c @@ -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;