aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-08-01 12:51:10 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-08-01 12:51:10 +0100
commit209866caf0cc609cec5cd77f1bd5a12892e758e5 (patch)
tree643046ac2b06fd2277c78ba298b3f031118dc055 /src
parent9b09189ee8fa6331dd86974367aabc4aa6c99f5d (diff)
downloadrspamd-209866caf0cc609cec5cd77f1bd5a12892e758e5.tar.gz
rspamd-209866caf0cc609cec5cd77f1bd5a12892e758e5.zip
[Fix] Fixed argument checking for being null
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_config.c2
1 files changed, 1 insertions, 1 deletions
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,