diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-18 10:42:23 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-18 10:42:48 +0000 |
commit | 6581dc09e6ca1e8114430b9c921012c885959384 (patch) | |
tree | 848997605344c6943ffc5705622b9d5f6034064d | |
parent | c49ff22807caadd8476c840b3bb065f75639cb1f (diff) | |
download | rspamd-6581dc09e6ca1e8114430b9c921012c885959384.tar.gz rspamd-6581dc09e6ca1e8114430b9c921012c885959384.zip |
[Minor] Fix learning with symbols that have no static scores
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 1fbf988a9..4a6040145 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -4791,7 +4791,7 @@ lua_task_process_ann_tokens (lua_State *L) gdouble norm_score; - if (!isnan (sres->sym->score)) { + if (sres->sym && !isnan (sres->sym->score)) { if (sres->sym->score == 0) { if (sres->score == 0) { |