From 5116db87b27edb993c5e0fc25191910dafb1902f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=BCrgin?= Date: Fri, 21 May 2021 12:42:39 +0200 Subject: [PATCH] Insert trace headers at index 0 Index 0 inserts before the MTA's Received header. --- openarc/openarc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openarc/openarc.c b/openarc/openarc.c index 7e191dc1..90b079b2 100644 --- a/openarc/openarc.c +++ b/openarc/openarc.c @@ -3805,7 +3805,7 @@ mlfi_eom(SMFICTX *ctx) strlcat(hfvalue, arc_hdr_value(sealhdr), sizeof hfvalue); - status = arcf_insheader(ctx, 1, hfname, hfvalue); + status = arcf_insheader(ctx, 0, hfname, hfvalue); if (status == MI_FAILURE) { if (conf->conf_dolog) @@ -3861,7 +3861,7 @@ mlfi_eom(SMFICTX *ctx) " arc.chain=%s", arcchainbuf); } - if (arcf_insheader(ctx, 1, AUTHRESULTSHDR, + if (arcf_insheader(ctx, 0, AUTHRESULTSHDR, arcf_dstring_get(afc->mctx_tmpstr)) != MI_SUCCESS) { if (conf->conf_dolog) @@ -3890,7 +3890,7 @@ mlfi_eom(SMFICTX *ctx) afc->mctx_jobid != NULL ? afc->mctx_jobid : (u_char *) JOBIDUNKNOWN); - if (arcf_insheader(ctx, 1, SWHEADERNAME, xfhdr) != MI_SUCCESS) + if (arcf_insheader(ctx, 0, SWHEADERNAME, xfhdr) != MI_SUCCESS) { if (conf->conf_dolog) {