From: Vsevolod Stakhov Date: Sun, 28 Feb 2021 19:30:54 +0000 (+0000) Subject: [Minor] Fix header update X-Git-Tag: 3.0~632 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ebd14809342d2eedfdb97fc4f39f580c5cf49cb;p=rspamd.git [Minor] Fix header update --- 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;