]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fixed argument checking for being null 2388/head
authorMikhail Galanin <mgalanin@mimecast.com>
Wed, 1 Aug 2018 11:51:10 +0000 (12:51 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Wed, 1 Aug 2018 11:51:10 +0000 (12:51 +0100)
src/lua/lua_config.c

index 41e323753f5157a22af5304d82248fc6202fe2d9..2093cbe018121079ad9a2c75bf0ab873d9a531a8 100644 (file)
@@ -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,