Skip to content

Commit

Permalink
openarc: Ignore unknown method in the result of parsing AR header
Browse files Browse the repository at this point in the history
Since we discard resinfo of which method is not known in AR header
parsing now, it should never happen. However we check it as a foolproof.

* openarc/openarc.c (mlfi_eom):
   Ignore unknown method in the result of parsing AR header, and
   log it.
  • Loading branch information
futatuki committed Sep 17, 2024
1 parent be7d101 commit 8d09e4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3660,6 +3660,17 @@ mlfi_eom(SMFICTX *ctx)

for (n = 0; n < ar.ares_count; n++)
{
if (ar.ares_result[n].result_method == ARES_METHOD_UNKNOWN)
{
/* foolproof: should not happen */
if (conf->conf_dolog)
{
syslog(LOG_DEBUG,
"%s: internal error: unknown method is found in ares_result, ignored",
afc->mctx_jobid);
}
continue;
}
if (ar.ares_result[n].result_method == ARES_METHOD_ARC)
{
/*
Expand Down

0 comments on commit 8d09e4f

Please sign in to comment.