Skip to content
Snippets Groups Projects
Commit a35a0256 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Added an extra NULL check to zone integrity checking.

- Nighlty tests would sometimes crash, when zones were not bootstrapper properly.
parent 61774978
Branches
Tags
No related merge requests found
......@@ -2515,6 +2515,12 @@ int knot_zone_contents_integrity_check(const knot_zone_contents_t *contents)
data.children = 0;
data.contents = contents;
if (contents == NULL) {
log_zone_warning("Zone to be integrity-checked does "
"not exist. Skipping...\n");
return 1;
}
int ret = knot_zone_contents_tree_apply_inorder(
(knot_zone_contents_t *)contents,
knot_zc_integrity_check_node, (void *)&data);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment