diff options
Diffstat (limited to 'src/libserver/roll_history.c')
-rw-r--r-- | src/libserver/roll_history.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/roll_history.c b/src/libserver/roll_history.c index ee69d59d3..ceed8d04f 100644 --- a/src/libserver/roll_history.c +++ b/src/libserver/roll_history.c @@ -140,8 +140,10 @@ rspamd_roll_history_update (struct roll_history *history, row->timestamp = task->task_timestamp; /* Strings */ - rspamd_strlcpy (row->message_id, MESSAGE_FIELD (task, message_id), - sizeof (row->message_id)); + if (task->message) { + rspamd_strlcpy (row->message_id, MESSAGE_FIELD (task, message_id), + sizeof (row->message_id)); + } if (task->user) { rspamd_strlcpy (row->user, task->user, sizeof (row->user)); } |