Skip to content

Commit a4ea974

Browse files
author
A. Schulze
committed
1 parent 1437840 commit a4ea974

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

libopenarc/arc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3711,7 +3711,7 @@ arc_chain_custody_str(ARC_MESSAGE *msg, u_char *buf, size_t buflen)
37113711
kvset = msg->arc_sets[set].arcset_ams->hdr_data;
37123712
str = arc_param_get(kvset, "d");
37133713
(void) arc_dstring_printf(tmpbuf, "%s%s",
3714-
(set < msg->arc_nsets ? ":" : ""),
3714+
(set < msg->arc_nsets -1 ? ":" : ""),
37153715
str);
37163716
}
37173717

openarc/openarc.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3851,14 +3851,24 @@ mlfi_eom(SMFICTX *ctx)
38513851

38523852
if (ipout != NULL)
38533853
{
3854+
_Bool quota = strchr(ipout, ':') != NULL;
3855+
38543856
arcf_dstring_printf(afc->mctx_tmpstr,
3855-
" smtp.remote-ip=%s", ipout);
3857+
" smtp.remote-ip=%s%s%s",
3858+
quote ? "\"" : "",
3859+
ipout,
3860+
quote ? "\"" : "");
38563861
}
38573862

38583863
if (conf->conf_finalreceiver && arcchainlen > 0)
38593864
{
3865+
_Bool quote = strchr(arcchainbuf, ':') != NULL;
3866+
38603867
arcf_dstring_printf(afc->mctx_tmpstr,
3861-
" arc.chain=%s", arcchainbuf);
3868+
" arc.chain=%s%s%s",
3869+
quote ? "\"" : "",
3870+
arcchainbuf,
3871+
quote ? "\"" : "");
38623872
}
38633873

38643874
if (arcf_insheader(ctx, 1, AUTHRESULTSHDR,

0 commit comments

Comments
 (0)