From: Mikhail Galanin Date: Wed, 1 Aug 2018 11:51:10 +0000 (+0100) Subject: [Fix] Fixed argument checking for being null X-Git-Tag: 1.7.9~2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=209866caf0cc609cec5cd77f1bd5a12892e758e5;p=rspamd.git [Fix] Fixed argument checking for being null --- diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 41e323753..2093cbe01 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1992,7 +1992,7 @@ lua_config_register_dependency (lua_State * L) skip_squeeze = lua_toboolean (L, 4); } - if (child != NULL && child != NULL) { + if (child != NULL && parent != NULL) { if (skip_squeeze || !rspamd_lua_squeeze_dependency (L, cfg, child, parent)) { rspamd_symbols_cache_add_delayed_dependency (cfg->cache, child,