diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-05 14:38:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-05 14:38:25 +0100 |
commit | 19d0bc298991143ce2da20dc9f43dfaece96a7b1 (patch) | |
tree | bf584ff6a7ce76578008987582c581e8febb831c /src/libmime/received.cxx | |
parent | 449aca4df972fcf558ecf6c30e7ac72ce81c60a0 (diff) | |
download | rspamd-19d0bc298991143ce2da20dc9f43dfaece96a7b1.tar.gz rspamd-19d0bc298991143ce2da20dc9f43dfaece96a7b1.zip |
[Fix] Avoid copy for received structure as it has raw C pointers
Diffstat (limited to 'src/libmime/received.cxx')
-rw-r--r-- | src/libmime/received.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/received.cxx b/src/libmime/received.cxx index 6c79ced00..5a04c812b 100644 --- a/src/libmime/received.cxx +++ b/src/libmime/received.cxx @@ -713,7 +713,7 @@ received_maybe_fix_task(struct rspamd_task *task) -> bool msg_debug_task ("the first received seems to be" " not ours, prepend it with fake one"); - auto trecv = recv_chain_ptr->new_received(received_header_chain::append_type::append_head); + auto &trecv = recv_chain_ptr->new_received(received_header_chain::append_type::append_head); trecv.flags |= received_flags::ARTIFICIAL; if (task->flags & RSPAMD_TASK_FLAG_SSL) { |