]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix implicit arrays case
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Apr 2018 16:11:06 +0000 (17:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Apr 2018 16:11:06 +0000 (17:11 +0100)
src/libserver/cfg_utils.c

index 1a2f473e7254b548329eee0c359dbf545324ca39..3856c294bd788a2e363dfe782402c948c34ef447 100644 (file)
@@ -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;