diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-14 18:01:09 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-14 18:01:09 +0400 |
commit | 1d14cf8fc1a73060c18e71bf65ecb6f20823dd9e (patch) | |
tree | 6e24cfdd7133e23772a4b10aa8f9ad3c881ec4ef /src/protocol.c | |
parent | de262993190d03e40143e83067fb348a33ff9dbd (diff) | |
download | rspamd-1d14cf8fc1a73060c18e71bf65ecb6f20823dd9e.tar.gz rspamd-1d14cf8fc1a73060c18e71bf65ecb6f20823dd9e.zip |
Fix core dumps when no symbols are found in a message.
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c index 3eae408de..efce45f7a 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -1088,7 +1088,7 @@ show_metric_result (gpointer metric_name, gpointer metric_value, void *user_data m = g_hash_table_lookup (task->cfg->metrics, DEFAULT_METRIC); default_required_score = m->required_score; default_score = 0; - if (!check_metric_settings (metric_res, &ms, &rs)) { + if (metric_res != NULL && !check_metric_settings (metric_res, &ms, &rs)) { ms = m->required_score; rs = m->reject_score; } |