aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-24 19:39:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-25 07:46:49 +0100
commit8568f4e445b50f1079790ade0b0d9b1f79eb7e3a (patch)
tree1e84a2a4470f5313d7ace172609a8e832beea072 /src/libserver/protocol.c
parent6c25c69781356431bbcc63457d9f3c388a311538 (diff)
downloadrspamd-8568f4e445b50f1079790ade0b0d9b1f79eb7e3a.tar.gz
rspamd-8568f4e445b50f1079790ade0b0d9b1f79eb7e3a.zip
[Minor] Avoid unnecessary dynamic allocation
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 69427e8b5..6180adccb 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -220,8 +220,8 @@ rspamd_protocol_handle_headers (struct rspamd_task *task,
HASH_ITER (hh, msg->headers, header, htmp) {
DL_FOREACH (header, h) {
- hn = rspamd_fstring_new_init (h->name->begin, h->name->len);
- hv = rspamd_fstring_new_init (h->value->begin, h->value->len);
+ hn = rspamd_fstring_new_init (h->name.begin, h->name.len);
+ hv = rspamd_fstring_new_init (h->value.begin, h->value.len);
hn_tok = rspamd_ftok_map (hn);
hv_tok = rspamd_ftok_map (hv);