From 7425878cfa1da430ef52554c303f8167ed6f1d07 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 29 Jun 2018 12:34:46 +0100 Subject: [Fix] Fix reload crash --- src/libserver/dynamic_cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libserver/dynamic_cfg.c b/src/libserver/dynamic_cfg.c index 39b2ebf7b..33231b462 100644 --- a/src/libserver/dynamic_cfg.c +++ b/src/libserver/dynamic_cfg.c @@ -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; } -- cgit v1.2.3