From a7afa3e163d2ee89fdc8f29863077f45d520dbe1 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Thu, 21 Apr 2022 12:20:07 +0900 Subject: [PATCH] proxy: Adjust the place to refer coll_fd value Signed-off-by: Hiroshi Hatake --- src/flb_plugin_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flb_plugin_proxy.c b/src/flb_plugin_proxy.c index 8d90dc075d4..247e2721b14 100644 --- a/src/flb_plugin_proxy.c +++ b/src/flb_plugin_proxy.c @@ -315,7 +315,6 @@ int flb_plugin_proxy_input_init(struct flb_plugin_proxy *proxy, return -1; } - ctx->it.coll_fd = ret; /* Before to initialize for proxy, set the proxy instance reference */ ctx->proxy = proxy; @@ -358,6 +357,7 @@ int flb_plugin_proxy_input_init(struct flb_plugin_proxy *proxy, flb_error("Could not set collector for threaded proxy input plugin"); goto init_error; } + ctx->it.coll_fd = ret; return ret;