Skip to content

Commit 13a7199

Browse files
committed
openarc: Ignore unknown method in the result of parsing AR header
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.
1 parent 9f54ab2 commit 13a7199

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

openarc/openarc.c

+11
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,17 @@ mlfi_eom(SMFICTX *ctx)
36603660

36613661
for (n = 0; n < ar.ares_count; n++)
36623662
{
3663+
if (ar.ares_result[n].result_method == ARES_METHOD_UNKNOWN)
3664+
{
3665+
/* foolproof: should not happen */
3666+
if (conf->conf_dolog)
3667+
{
3668+
syslog(LOG_DEBUG,
3669+
"%s: internal error: unknown method is found in ares_result, ignored",
3670+
afc->mctx_jobid);
3671+
}
3672+
continue;
3673+
}
36633674
if (ar.ares_result[n].result_method == ARES_METHOD_ARC)
36643675
{
36653676
/*

0 commit comments

Comments
 (0)