diff options
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 78a64a632..efe28e280 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -177,9 +177,9 @@ rspamd_stat_tokenize_parts_metadata (struct rspamd_stat_ctx *st_ctx, g_array_append_val (ar, elt); } /* Number recipients */ - if (task->rcpt_mime && internet_address_list_length (task->rcpt_mime) > 0) { + if (task->rcpt_mime && task->rcpt_mime->len > 0) { rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "recipients%d", - (gint)internet_address_list_length (task->rcpt_mime)); + (gint)task->rcpt_mime->len); elt.begin = rspamd_mempool_strdup (task->task_pool, tmpbuf); elt.len = strlen (elt.begin); g_array_append_val (ar, elt); |