From b699614407cfc4573e63afa46d8f961783bc502b Mon Sep 17 00:00:00 2001 From: Baek Choong deok Date: Thu, 21 Sep 2023 15:40:50 +0900 Subject: [PATCH] out_http: Fix bug where post_all_requests() always returns a value less than 0 --- plugins/out_http/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/out_http/http.c b/plugins/out_http/http.c index 17c3ef92b9d..f88b6346dca 100644 --- a/plugins/out_http/http.c +++ b/plugins/out_http/http.c @@ -503,7 +503,7 @@ static int post_all_requests(struct flb_out_http *ctx, return -1; } - while ((ret = flb_log_event_decoder_next( + while ((flb_log_event_decoder_next( &log_decoder, &log_event)) == FLB_EVENT_DECODER_SUCCESS) { headers = NULL;