]> source.dussan.org Git - rspamd.git/commitdiff
Handle workers params properly.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Nov 2013 17:12:53 +0000 (17:12 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Nov 2013 17:12:53 +0000 (17:12 +0000)
src/cfg_rcl.c

index c9e1c4437622f185cd573cfee55445b67147b436..e5d7213055869d619ad6ab82e09936ddde2c49d4 100644 (file)
@@ -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);
 }