Skip to content

Commit

Permalink
Fix existing sets not being included in seal
Browse files Browse the repository at this point in the history
  • Loading branch information
abeverley committed Jan 30, 2024
1 parent eb430db commit 7c51d3a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions libopenarc/arc-canon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2103,6 +2103,28 @@ arc_canon_add_to_seal(ARC_MESSAGE *msg)

sc = msg->arc_sealcanon;

/* This ARC Seal must include any existing ARC sets. Add those first */
for (u_int i = 0; i < msg->arc_nsets; i++)
{
hdr = msg->arc_sets[i].arcset_aar;

status = arc_canon_header(msg, msg->arc_sealcanon, hdr, TRUE);
if (status != ARC_STAT_OK)
return status;

hdr = msg->arc_sets[i].arcset_ams;

status = arc_canon_header(msg, msg->arc_sealcanon, hdr, TRUE);
if (status != ARC_STAT_OK)
return status;

hdr = msg->arc_sets[i].arcset_as;

status = arc_canon_header(msg, msg->arc_sealcanon, hdr, TRUE);
if (status != ARC_STAT_OK)
return status;

}
for (hdr = msg->arc_sealhead; hdr != NULL; hdr = hdr->hdr_next)
{
status = arc_canon_header(msg, msg->arc_sealcanon, hdr, TRUE);
Expand Down

0 comments on commit 7c51d3a

Please sign in to comment.