Skip to content

Commit

Permalink
in_calyptia_fleet: check return value of old_fleet_config_filename.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan authored and edsiper committed Oct 29, 2023
1 parent 92d5824 commit 71e5565
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 @@ -276,6 +276,10 @@ static int is_old_fleet_config(struct flb_in_calyptia_fleet_config *ctx, struct
}

cfgcurname = old_fleet_config_filename(ctx);
if (cfgcurname == NULL) {
flb_plg_error(ctx->ins, "unable to allocate configuration name");
return FLB_FALSE;
}

if (strcmp(cfgcurname, cfg->conf_path_file) == 0) {
ret = FLB_TRUE;
Expand Down

0 comments on commit 71e5565

Please sign in to comment.