diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-19 11:47:00 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-19 11:47:00 +0100 |
commit | b5a184a0f8b376f3917f103b637a3db17925d2ae (patch) | |
tree | 32a71c84c66768c9ebfb3e1d11baee55ad066225 /src/lua | |
parent | 416da198db9ca6bff6859eb52bd61ad5c261bddd (diff) | |
download | rspamd-b5a184a0f8b376f3917f103b637a3db17925d2ae.tar.gz rspamd-b5a184a0f8b376f3917f103b637a3db17925d2ae.zip |
[Fix] Fix hash table lookup
Found by: coverity scan
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index b095de8e7..393a370a8 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -5725,7 +5725,7 @@ lua_task_set_settings (lua_State *L) if (!isnan (act_score)) { struct rspamd_action *new_act; - HASH_FIND_PTR (task->cfg->actions, act_name, new_act); + HASH_FIND_STR (task->cfg->actions, act_name, new_act); if (new_act == NULL) { /* New action! */ |