diff options
Diffstat (limited to 'src/libknot/zone/zone-contents.c')
-rw-r--r-- | src/libknot/zone/zone-contents.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libknot/zone/zone-contents.c b/src/libknot/zone/zone-contents.c index ff1a1d4..fbf4ab3 100644 --- a/src/libknot/zone/zone-contents.c +++ b/src/libknot/zone/zone-contents.c @@ -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); |