diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-07 09:48:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-07 09:48:01 +0100 |
commit | 914623a044a7ca94c3bb80ed36ee571820c7b32c (patch) | |
tree | 59c11e6b830ca5da6d5583adabbbbcd9b3affce9 | |
parent | 4355ecf626c1e463818b36094cff39976848ca9f (diff) | |
download | rspamd-914623a044a7ca94c3bb80ed36ee571820c7b32c.tar.gz rspamd-914623a044a7ca94c3bb80ed36ee571820c7b32c.zip |
Fix null pointer dereference.
-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 26ef75320..e40fe0197 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1612,7 +1612,7 @@ lua_push_symbol_result (lua_State *L, lua_pushnumber (L, s->score); lua_settable (L, -3); - if (s->def) { + if (s->def && s->def->gr) { lua_pushstring (L, "group"); lua_pushstring (L, s->def->gr->name); lua_settable (L, -3); |