aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_headers.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-09 10:41:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-09 10:41:41 +0100
commitca75670ee0f606734170f39d2cb1b63beb3780be (patch)
tree35ace04a620fc8722496b4aa90cf9a8e66320bdc /src/libmime/mime_headers.c
parente9308a4f33c1be3f8057d5a9dc4d60400f58b221 (diff)
downloadrspamd-ca75670ee0f606734170f39d2cb1b63beb3780be.tar.gz
rspamd-ca75670ee0f606734170f39d2cb1b63beb3780be.zip
[Minor] Do copy as this value will be modified
Diffstat (limited to 'src/libmime/mime_headers.c')
-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 c1d5f397c..8f229a9b3 100644
--- a/src/libmime/mime_headers.c
+++ b/src/libmime/mime_headers.c
@@ -416,8 +416,8 @@ rspamd_mime_headers_process (struct rspamd_task *task,
break;
case 5:
/* Header has only name, no value */
- nh->value = "";
- nh->decoded = "";
+ nh->value = rspamd_mempool_strdup (task->task_pool, "");;
+ nh->decoded = rspamd_mempool_strdup (task->task_pool, "");;
nh->raw_len = p - nh->raw_value;
nh->order = norder ++;
rspamd_mime_header_add (task, &target->htb, order_ptr, nh, check_newlines);