The current_dns_server_json object in dns_configuration_json_append() is
always NULL, because the logic to dump the current DNS server to JSON
was removed by mistake in a re-factoring commit. Add that logic back.
Fixes
c6b6ac63ea ("resolve: drop unnecessary preparation of empty arrays").
assert(configuration);
+ if (current_dns_server) {
+ r = dns_server_dump_configuration_to_json(current_dns_server, ¤t_dns_server_json);
+ if (r < 0)
+ return r;
+ }
+
SET_FOREACH(scope, dns_scopes) {
_cleanup_(sd_json_variant_unrefp) sd_json_variant *v = NULL;