From b860471279dfd3ec4dcdba9c02b7886869459ec8 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Thu, 11 Jun 2020 23:25:38 +0200 Subject: Oops....fixup connect_any callback throughout --- proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proxy.c') diff --git a/proxy.c b/proxy.c index d06803d..125c408 100644 --- a/proxy.c +++ b/proxy.c @@ -183,11 +183,11 @@ proxy_server_data_in(struct cfg *cfg, struct uring_task *task, int res) } static void -proxy_connected_cb(struct cfg *cfg, struct connection *conn, int res) +proxy_connected_cb(struct cfg *cfg, struct connection *conn, bool connected) { struct server_proxy *proxy = container_of(conn, struct server_proxy, server_conn); - if (res < 0) { + if (!connected) { fprintf(stderr, "%s: proxy connection to remote server failed\n", proxy->scfg->name); proxy_delete(cfg, proxy); -- cgit v1.2.3