diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-24 17:11:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-24 17:11:06 +0100 |
commit | c28687631ba49d7339ca728c4255194911ecca98 (patch) | |
tree | 5f1a7acc89bb38e09e33a3068886e1ee7a8201e4 | |
parent | 33b24d26a1a811c9488250d30fd41132387faf76 (diff) | |
download | rspamd-c28687631ba49d7339ca728c4255194911ecca98.tar.gz rspamd-c28687631ba49d7339ca728c4255194911ecca98.zip |
[Minor] Fix implicit arrays case
-rw-r--r-- | src/libserver/cfg_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 1a2f473e7..3856c294b 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -1797,7 +1797,10 @@ rspamd_config_radix_from_ucl (struct rspamd_config *cfg, } else { /* Just a list */ - *target = rspamd_map_helper_new_radix (NULL); + if (!*target) { + *target = rspamd_map_helper_new_radix (NULL); + } + rspamd_map_helper_insert_radix_resolve (*target, str, ""); } break; |