From 415b80326d2a0e1cf8439e0ea1c81eb1d99a97d8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 15 Nov 2013 17:12:53 +0000 Subject: [PATCH] Handle workers params properly. --- src/cfg_rcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfg_rcl.c b/src/cfg_rcl.c index c9e1c4437..e5d721305 100644 --- a/src/cfg_rcl.c +++ b/src/cfg_rcl.c @@ -1474,7 +1474,7 @@ rspamd_rcl_register_worker_option (struct config_file *cfg, gint type, const gch nhandler->parser.offset = offset; nhandler->parser.user_struct = target; nhandler->handler = handler; - HASH_ADD_STR (nparser->parsers, name, nhandler); + HASH_ADD_KEYPTR (hh, nparser->parsers, name, strlen (name), nhandler); } -- 2.39.5