diff options
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index a1269664d..8d9717562 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -958,6 +958,10 @@ rspamd_stat_has_classifier_symbols (struct rspamd_task *task, struct rspamd_stat_ctx *st_ctx; gboolean is_spam; + if (mres == NULL) { + return FALSE; + } + st_ctx = rspamd_stat_get_ctx (); is_spam = !!(task->flags & RSPAMD_TASK_FLAG_LEARN_SPAM); |