git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d342446
)
ARC: fix verify to not evaluate the top AMS twice
exim-4_91_RC4
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 7 Apr 2018 21:44:39 +0000
(22:44 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 7 Apr 2018 21:44:39 +0000
(22:44 +0100)
src/src/arc.c
patch
|
blob
|
history
diff --git
a/src/src/arc.c
b/src/src/arc.c
index dedf64c444341ed708ce2d907ff1d8d2384c298a..39c081193217ef1af0be89839784eb74ccd7d0d2 100644
(file)
--- a/
src/src/arc.c
+++ b/
src/src/arc.c
@@
-760,7
+760,6
@@
arc_headers_check(arc_ctx * ctx)
arc_set * as;
int inst;
BOOL ams_fail_found = FALSE;
arc_set * as;
int inst;
BOOL ams_fail_found = FALSE;
-uschar * ret = NULL;
if (!(as = ctx->arcset_chain))
return US"none";
if (!(as = ctx->arcset_chain))
return US"none";
@@
-792,20
+791,20
@@
for(inst = 0; as; as = as->next)
arc_received = ctx->arcset_chain_last;
arc_received_instance = inst;
arc_received = ctx->arcset_chain_last;
arc_received_instance = inst;
-if (ret)
- return ret;
/* We can skip the latest-AMS validation, if we already did it. */
as = ctx->arcset_chain_last;
/* We can skip the latest-AMS validation, if we already did it. */
as = ctx->arcset_chain_last;
-if (
as->ams_verify_done &&
!as->ams_verify_passed)
+if (!as->ams_verify_passed)
{
{
- arc_state_reason = as->ams_verify_done;
- return US"fail";
+ if (as->ams_verify_done)
+ {
+ arc_state_reason = as->ams_verify_done;
+ return US"fail";
+ }
+ if (!!arc_ams_verify(ctx, as))
+ return US"fail";
}
}
-if (!!arc_ams_verify(ctx, as))
- return US"fail";
-
return NULL;
}
return NULL;
}