]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix reload crash
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jun 2018 11:34:46 +0000 (12:34 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jun 2018 11:34:46 +0000 (12:34 +0100)
src/libserver/dynamic_cfg.c

index 39b2ebf7b676099d809f8178f83310ffa5edb2ee..33231b46271adb3dda17970816ddd0b421202043 100644 (file)
@@ -175,7 +175,7 @@ json_config_fin_cb (struct map_cb_data *data)
        ucl_object_t *top;
        struct ucl_parser *parser;
 
-       if (data->prev_data) {
+       if (data->cur_data && data->prev_data) {
                jb = data->prev_data;
                /* Clean prev data */
                if (jb->buf) {
@@ -190,7 +190,6 @@ json_config_fin_cb (struct map_cb_data *data)
                jb = data->cur_data;
        }
        else {
-               msg_err ("no data read");
                return;
        }