diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-03 15:55:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-03 15:55:34 +0100 |
commit | f67ac5a70a1121eea7d16fd9ce0eb684cfbb48fe (patch) | |
tree | fe10e0f6abfb9d27b128c6cd32b3cbe750ba1a3b /src/lua/lua_logger.c | |
parent | f990bf63f6311d4c20dbf919ea60166530476b1c (diff) | |
download | rspamd-f67ac5a70a1121eea7d16fd9ce0eb684cfbb48fe.tar.gz rspamd-f67ac5a70a1121eea7d16fd9ce0eb684cfbb48fe.zip |
Fix stupid error while reading logger pool argument.
Diffstat (limited to 'src/lua/lua_logger.c')
-rw-r--r-- | src/lua/lua_logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c index 45113adf3..19ce3df8e 100644 --- a/src/lua/lua_logger.c +++ b/src/lua/lua_logger.c @@ -461,7 +461,7 @@ lua_logger_logx (lua_State *L, GLogLevelFlags level, gboolean is_string) uid = task->task_pool->tag.uid; } } - else if (strcmp (clsname, "rspamd{mempool}")) { + else if (strcmp (clsname, "rspamd{mempool}") == 0) { rspamd_mempool_t *pool; pool = rspamd_lua_check_mempool (L, 1); @@ -470,7 +470,7 @@ lua_logger_logx (lua_State *L, GLogLevelFlags level, gboolean is_string) uid = pool->tag.uid; } } - else if (strcmp (clsname, "rspamd{config}")) { + else if (strcmp (clsname, "rspamd{config}") == 0) { struct rspamd_config *cfg; cfg = lua_check_config (L, 1); |