From 27ba32e8c92633aceb4d3b865fd485f4b7f086db Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 5 Jun 2017 10:29:37 +0100 Subject: [PATCH] [Minor] Fix milter protocol element name --- src/libserver/milter.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 983750a77..67f47e95b 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1277,7 +1277,7 @@ rspamd_milter_update_userdata (struct rspamd_milter_session *session, } static void -rspamd_milter_process_rmilter_block (struct rspamd_milter_session *session, +rspamd_milter_process_milter_block (struct rspamd_milter_session *session, const ucl_object_t *obj) { const ucl_object_t *elt, *cur, *cur_elt; @@ -1381,13 +1381,15 @@ rspamd_milter_send_task_results (struct rspamd_milter_session *session, } /* Deal with milter headers */ - elt = ucl_object_lookup (results, "rmilter"); + elt = ucl_object_lookup (results, "milter"); + if (elt) { - rspamd_milter_process_rmilter_block (session, elt); + rspamd_milter_process_milter_block (session, elt); } /* DKIM-Signature */ elt = ucl_object_lookup (results, "dkim-signature"); + if (elt) { hname = g_string_new (RSPAMD_MILTER_DKIM_HEADER); hvalue = g_string_new (ucl_object_tostring (elt)); -- 2.39.5