diff options
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_process.c | 5 |
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); |