commit 8ebd148: [Minor] Fix header update
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Feb 28 19:35:10 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-02-28 19:30:54 +0000
URL: https://github.com/rspamd/rspamd/commit/8ebd14809342d2eedfdb97fc4f39f580c5cf49cb (HEAD -> master)
[Minor] Fix header update
---
src/libmime/mime_headers.c | 4 ++--
1 file 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;
More information about the Commits
mailing list