From 209866caf0cc609cec5cd77f1bd5a12892e758e5 Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Wed, 1 Aug 2018 12:51:10 +0100 Subject: [PATCH] [Fix] Fixed argument checking for being null --- src/lua/lua_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5