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

Fixed potential NULL dereference.

- Coverity: 989562
parent 7ef7de75
No related branches found
No related tags found
No related merge requests found
......@@ -963,7 +963,7 @@ static int zone_is_secure(const knot_zone_contents_t *z)
const knot_rrset_t *soa_rr =
knot_node_rrset(knot_zone_contents_apex(z),
KNOT_RRTYPE_SOA);
return (soa_rr->rrsigs ? 1 : 0);
return (soa_rr && soa_rr->rrsigs ? 1 : 0);
}
static int sem_check_node_mandatory(knot_zone_contents_t *zone,
......
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