Skip to content
Snippets Groups Projects
Commit be792fe6 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

DNSSEC: fix crash when the zone file is not available but journal exists

refs #4
parent c2f9d25c
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ static void init_forced_policy(knot_dnssec_policy_t *p,
static int zone_sign(knot_zone_t *zone, knot_changeset_t *out_ch, bool force,
knot_update_serial_t soa_up)
{
if (zone == NULL) {
if (zone == NULL || zone->contents == NULL) {
return KNOT_EINVAL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment