From d1fec26ad326f4e31073422ccbec33695a424807 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Mon, 6 Nov 2023 09:14:48 +0100 Subject: [PATCH] input_chunk: fixed a corner case when records are dropped Signed-off-by: Leonardo Alminana --- src/flb_input_chunk.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/flb_input_chunk.c b/src/flb_input_chunk.c index c5b894aa45d..959e5fd396e 100644 --- a/src/flb_input_chunk.c +++ b/src/flb_input_chunk.c @@ -1537,10 +1537,8 @@ static int input_chunk_append_raw(struct flb_input_instance *in, tag, tag_len, in->config); - if (filtered_data_buffer != NULL) { - final_data_buffer = filtered_data_buffer; - final_data_size = filtered_data_size; - } + final_data_buffer = filtered_data_buffer; + final_data_size = filtered_data_size; } if (final_data_size > 0){