aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 15:11:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 15:11:28 +0100
commit1cd27976e4e3649ba89eb537092747cae1ba079b (patch)
treeb45f377a0b694adf2ab39cd97a44e7c1a7e06123 /src/libstat/stat_process.c
parent4d6ff942ea5236dc0099e86db01eddfb3c0a121a (diff)
downloadrspamd-1cd27976e4e3649ba89eb537092747cae1ba079b.tar.gz
rspamd-1cd27976e4e3649ba89eb537092747cae1ba079b.zip
Use headers name.
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index a3f8d8a73..ae15d7ec0 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -57,6 +57,11 @@ rspamd_stat_tokenize_header (struct rspamd_task *task,
if (rh != NULL) {
LL_FOREACH (rh, cur) {
+ if (cur->name != NULL) {
+ str.begin = cur->name;
+ str.len = strlen (cur->name);
+ g_array_append_val (ar, str);
+ }
if (cur->decoded != NULL) {
str.begin = cur->decoded;
str.len = strlen (cur->decoded);