From: Vsevolod Stakhov Date: Tue, 7 Jul 2015 08:48:01 +0000 (+0100) Subject: Fix null pointer dereference. X-Git-Tag: 1.0.0~431 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=914623a044a7ca94c3bb80ed36ee571820c7b32c;p=thirdparty%2Frspamd.git Fix null pointer dereference. --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 26ef753202..e40fe01975 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);