From 4b5534b21374f24ada435bb6c2f0bb16c61983ee Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 20 Feb 2019 17:50:01 +0100 Subject: [PATCH] Finalize loop update --- src/donar_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;