Skip to content

Commit

Permalink
in_calyptia_fleet: check cfg parameter in is_old_fleet_config.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Oct 26, 2023
1 parent 0359ee2 commit ad55c15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,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;
}
Expand Down

0 comments on commit ad55c15

Please sign in to comment.