aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-08 20:33:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-08 20:34:48 +0000
commit3cfd800e0519babb33d28ee6bb8ed83d0a83285c (patch)
tree71d2a9c50a2f86df0a279b6b9a4df1e0e8b1ecc6
parente9d0b690e4e3844b8e7b40143c62d2c41ae75ede (diff)
downloadrspamd-3cfd800e0519babb33d28ee6bb8ed83d0a83285c.tar.gz
rspamd-3cfd800e0519babb33d28ee6bb8ed83d0a83285c.zip
[Fix] Fix format strings
-rw-r--r--src/libmime/mime_parser.c5
-rw-r--r--src/libserver/protocol.c2
-rw-r--r--src/libserver/spf.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index 410e14fbb..36a66cdd6 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -904,14 +904,15 @@ rspamd_mime_preprocess_cb (struct rspamd_multipattern *mp,
rspamd_cryptobox_siphash ((guchar *)&b.hash, lc_copy, blen,
lib_ctx->hkey);
- msg_debug_mime ("normal hash: %*s -> %L", blen, lc_copy);
+ msg_debug_mime ("normal hash: %*s -> %L", (gint)blen, lc_copy, b.hash);
if (closing) {
b.flags = RSPAMD_MIME_BOUNDARY_FLAG_CLOSED;
rspamd_cryptobox_siphash ((guchar *)&b.closed_hash, lc_copy,
blen + 2,
lib_ctx->hkey);
- msg_debug_mime ("closing hash: %*s -> %L", blen + 2, lc_copy);
+ msg_debug_mime ("closing hash: %*s -> %L", (gint)blen + 2, lc_copy,
+ b.closed_hash);
}
else {
b.flags = 0;
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 5e5132e1d..a6e7a7c54 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -305,7 +305,7 @@ rspamd_protocol_handle_headers (struct rspamd_task *task,
g_ptr_array_add (task->rcpt_envelope, addr);
}
else {
- msg_err_task ("bad rcpt header: '%T'", h->value);
+ msg_err_task ("bad rcpt header: '%T'", &h->value);
task->flags |= RSPAMD_TASK_FLAG_BROKEN_HEADERS;
}
debug_task ("read rcpt header, value: %V", hv);
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index 45530b6e8..b0afe1d66 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -1743,7 +1743,7 @@ expand_spf_macro (struct spf_record *rec, struct spf_resolved_element *resolved,
else {
msg_info_spf (
"<%s>: spf error for domain %s: unknown or "
- "unsupported spf macro %c (%s) in %s",
+ "unsupported spf macro %c in %s",
task->message_id,
rec->sender_domain,
*p,