aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dynamic_cfg.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-29 12:34:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-29 12:34:46 +0100
commit7425878cfa1da430ef52554c303f8167ed6f1d07 (patch)
tree4824b713e3119a2da9580e98f7baf3823c44f588 /src/libserver/dynamic_cfg.c
parentd3e603be38f2b7fe53788c7209b8aa6c7e58cb44 (diff)
downloadrspamd-7425878cfa1da430ef52554c303f8167ed6f1d07.tar.gz
rspamd-7425878cfa1da430ef52554c303f8167ed6f1d07.zip
[Fix] Fix reload crash
Diffstat (limited to 'src/libserver/dynamic_cfg.c')
-rw-r--r--src/libserver/dynamic_cfg.c3
1 files changed, 1 insertions, 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;
}