diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-26 09:52:47 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-26 09:52:47 +0000 |
commit | 252ac59dd93e12ab042217827e999c446db6b7e4 (patch) | |
tree | 62ff60528945bd4079717aa849d023462547594b /src | |
parent | 23f3f48508dfda96290f202b740c17ba604e89de (diff) | |
download | rspamd-252ac59dd93e12ab042217827e999c446db6b7e4.tar.gz rspamd-252ac59dd93e12ab042217827e999c446db6b7e4.zip |
Use object priority when adding symbols from ucl
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/cfg_rcl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index c21c8321d..559d0ee03 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -349,6 +349,9 @@ rspamd_rcl_symbol_handler (rspamd_mempool_t *pool, const ucl_object_t *obj, if (elt) { priority = ucl_object_toint (elt); } + else { + priority = ucl_object_get_priority (obj); + } elt = ucl_object_lookup (obj, "description"); if (elt) { |