summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-28 19:30:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-28 19:30:54 +0000
commit8ebd14809342d2eedfdb97fc4f39f580c5cf49cb (patch)
tree603d00eba2f018fb37a0a8bff27e667f1d13f173 /src
parent08bf11078d67665968283b1b83bd2cf8de51f7b7 (diff)
downloadrspamd-8ebd14809342d2eedfdb97fc4f39f580c5cf49cb.tar.gz
rspamd-8ebd14809342d2eedfdb97fc4f39f580c5cf49cb.zip
[Minor] Fix header update
Diffstat (limited to 'src')
-rw-r--r--src/libmime/mime_headers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c
index 9137e29de..e3ad125e0 100644
--- a/src/libmime/mime_headers.c
+++ b/src/libmime/mime_headers.c
@@ -1866,7 +1866,7 @@ rspamd_message_set_modified_header (struct rspamd_task *task,
/* End of headers removal logic */
}
- /* We can not deal with headers additions */
+ /* We can noц deal with headers additions */
elt = ucl_object_lookup (obj, "add");
if (elt && ucl_object_type (elt) == UCL_ARRAY) {
if (!(hdr_elt->flags & RSPAMD_HEADER_MODIFIED)) {
@@ -1877,7 +1877,7 @@ rspamd_message_set_modified_header (struct rspamd_task *task,
task->task_pool, sizeof (*nhdr));
memcpy (nhdr, hdr_elt, sizeof (*hdr_elt));
nhdr->modified_chain = NULL;
- nhdr->modified_chain->next = NULL;
+ nhdr->next = NULL;
nhdr->ord_next = NULL;
nhdr->prev = nhdr;
hdr_elt->modified_chain = nhdr;