aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@nxc.no>2017-08-14 23:27:11 +0300
committerSergey Poznyakoff <gray@nxc.no>2017-08-14 23:27:11 +0300
commit5d9f2f079856185cf6530e1807f2dfe26bd05996 (patch)
tree06d9d914903e5228a1b78dec4fd194c9a12cfae2
parentea78b9d164d45f556c0c1f81d2767d9ad92eb60f (diff)
downloadnssync-5d9f2f079856185cf6530e1807f2dfe26bd05996.tar.gz
nssync-5d9f2f079856185cf6530e1807f2dfe26bd05996.tar.bz2
Minor fix
-rw-r--r--src/nssync.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/nssync.c b/src/nssync.c
index d1623ce..8cd9939 100644
--- a/src/nssync.c
+++ b/src/nssync.c
@@ -571,11 +571,15 @@ nssync(struct json_value **ret_json)
filetab_clear();
- if (json_array_size(error_list) == 0
- && json_array_size(changed_zones) > 0)
- //FIXME: set error if it returns !0
- dns_reload();
- res = 0;
+ if (json_array_size(error_list) == 0) {
+ if (json_array_size(changed_zones) > 0) {
+ res = dns_reload();
+ if (res)
+ dlz_error(NULL,
+ "reload failed");
+ } else
+ res = 0;
+ }
}
}

Return to:

Send suggestions and report system problems to the System administrator.