From: Vsevolod Stakhov Date: Fri, 15 Nov 2013 17:12:53 +0000 (+0000) Subject: Handle workers params properly. X-Git-Tag: 0.6.0~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=415b80326d2a0e1cf8439e0ea1c81eb1d99a97d8;p=rspamd.git Handle workers params properly. --- 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); }