Skip to content
Snippets Groups Projects
Commit 84ee54b2 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

dnssec-validate: report missing NSEC3 in case whole NSEC3 chain is wrong

parent 791086d5
No related branches found
No related tags found
1 merge request!1417Semantic checks using dnssec validation
/* Copyright (C) 2021 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -460,6 +460,11 @@ static int check_nsec_bitmap(zone_node_t *node, void *ctx)
found_nsec3 != NULL) {
return KNOT_ERROR;
}
if (prev_nsec3 == NULL) {
data->update->validation_hint.node = (nsec_node == NULL ? node->owner : nsec_node->owner);
data->update->validation_hint.rrtype = KNOT_RRTYPE_ANY;
return KNOT_DNSSEC_ENSEC_BITMAP;
}
knot_rdataset_t *nsec3 = node_rdataset(prev_nsec3, KNOT_RRTYPE_NSEC3);
if (nsec3 == NULL) {
return KNOT_ERROR;
......
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