diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-06-13 17:36:44 +0200 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-06-13 19:04:26 +0100 |
commit | 31323b30449a59713ed7a99f86e356cb1b9d0fb7 (patch) | |
tree | ab1f0b71e9520831015270470469ff79a7d3815e | |
parent | e39fdc8556cb9c21af32e56b1a2aba69a2736f0b (diff) |
Fix log line corruption for DKIM status
-rw-r--r-- | src/src/dkim.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/src/dkim.c b/src/src/dkim.c index b9dbce68d..03efb18d4 100644 --- a/src/src/dkim.c +++ b/src/src/dkim.c @@ -169,12 +169,12 @@ for (sig = dkim_signatures; sig; sig = sig->next) : sig->algo == PDKIM_ALGO_RSA_SHA1 ? "rsa-sha1" : "err", string_sprintf(" b=%d", (int)sig->sighash.len > -1 ? sig->sighash.len * 8 : 0)); - if ((s= sig->identity)) string_append(logmsg, &size, &ptr, 2, " i=", s); - if (sig->created > 0) string_append(logmsg, &size, &ptr, 1, + if ((s= sig->identity)) logmsg = string_append(logmsg, &size, &ptr, 2, " i=", s); + if (sig->created > 0) logmsg = string_append(logmsg, &size, &ptr, 1, string_sprintf(" t=%lu", sig->created)); - if (sig->expires > 0) string_append(logmsg, &size, &ptr, 1, + if (sig->expires > 0) logmsg = string_append(logmsg, &size, &ptr, 1, string_sprintf(" x=%lu", sig->expires)); - if (sig->bodylength > -1) string_append(logmsg, &size, &ptr, 1, + if (sig->bodylength > -1) logmsg = string_append(logmsg, &size, &ptr, 1, string_sprintf(" l=%lu", sig->bodylength)); switch (sig->verify_status) |