From 99d568b7c1b94a238b135867099e6283bd590b7a Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Thu, 26 Oct 2023 11:27:43 -0300 Subject: [PATCH] in_calyptia_fleet: check cfg parameter in is_old_fleet_config. Signed-off-by: Phillip Whelan --- plugins/in_calyptia_fleet/in_calyptia_fleet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/in_calyptia_fleet/in_calyptia_fleet.c b/plugins/in_calyptia_fleet/in_calyptia_fleet.c index 87c692aea1e..ea8bd511873 100644 --- a/plugins/in_calyptia_fleet/in_calyptia_fleet.c +++ b/plugins/in_calyptia_fleet/in_calyptia_fleet.c @@ -271,6 +271,10 @@ static int is_old_fleet_config(struct flb_in_calyptia_fleet_config *ctx, struct int ret = FLB_FALSE; + if (cfg == NULL) { + return FLB_FALSE; + } + if (cfg->conf_path_file == NULL) { return FLB_FALSE; }