]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix hash table lookup
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 19 Sep 2021 10:47:00 +0000 (11:47 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 19 Sep 2021 10:47:00 +0000 (11:47 +0100)
Found by: coverity scan

src/lua/lua_task.c

index b095de8e7a17e3bbe0d8ef7c9998da4e5ce3e748..393a370a8375e53848cb2866225905ab25191130 100644 (file)
@@ -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! */