diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-02-18 16:55:13 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-02-18 16:55:13 +0000 |
commit | c7283f8e50304ec0e0efa13a674ebe867f51be07 (patch) | |
tree | 977f1dab5058a0b9ee2e8511a88d719f7da49058 /src/roll_history.c | |
parent | 6cbad30ffbc13f9ce49e8a560f5d0fb27f4557d1 (diff) | |
download | rspamd-c7283f8e50304ec0e0efa13a674ebe867f51be07.tar.gz rspamd-c7283f8e50304ec0e0efa13a674ebe867f51be07.zip |
Fix empty messages processing.
Diffstat (limited to 'src/roll_history.c')
-rw-r--r-- | src/roll_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roll_history.c b/src/roll_history.c index fb9fe2e0c..b189e12d6 100644 --- a/src/roll_history.c +++ b/src/roll_history.c @@ -142,7 +142,7 @@ rspamd_roll_history_update (struct roll_history *history, struct worker_task *ta } row->scan_time = task->scan_milliseconds; - row->len = task->msg->len; + row->len = (task->msg == NULL ? 0 : task->msg->len); row->completed = TRUE; } |