summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-06-25 12:08:37 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2018-06-25 12:36:01 +0100
commit5054c4fdb5c5949872020d75beb5722eabe3d1d3 (patch)
treecd77718beb4f8d3e4203d7a026831b23d800225e /src
parentc645dd29e7f9fcb7e3d2fd9f20aa47084ba0221e (diff)
ARC: Fix verification to do AS checks in reverse order
Broken from the original introduction (617d39327e)
Diffstat (limited to 'src')
-rw-r--r--src/src/arc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/src/arc.c b/src/src/arc.c
index 466c13990..64362e751 100644
--- a/src/src/arc.c
+++ b/src/src/arc.c
@@ -984,16 +984,13 @@ return NULL;
static const uschar *
arc_verify_seals(arc_ctx * ctx)
{
-arc_set * as = ctx->arcset_chain;
+arc_set * as = ctx->arcset_chain_last;
if (!as)
return US"none";
-while (as)
- {
- if (arc_seal_verify(ctx, as)) return US"fail";
- as = as->next;
- }
+for ( ; as; as = as->prev) if (arc_seal_verify(ctx, as)) return US"fail";
+
DEBUG(D_acl) debug_printf("ARC: AS vfy overall pass\n");
return NULL;
}