Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
e24762c0
Commit
e24762c0
authored
Mar 25, 2019
by
Libor Peltan
Committed by
Daniel Salzman
Mar 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: nsec3 opt out not working in some cases
parent
94f06ba3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/knot/dnssec/nsec3-chain.c
src/knot/dnssec/nsec3-chain.c
+2
-5
tests-extra/tests/dnssec/nsec_update/test.py
tests-extra/tests/dnssec/nsec_update/test.py
+1
-0
No files found.
src/knot/dnssec/nsec3-chain.c
View file @
e24762c0
...
...
@@ -676,11 +676,8 @@ static int fix_nsec3_nodes(zone_update_t *update, const dnssec_nsec3_params_t *p
*/
static
bool
nsec3_is_empty
(
zone_node_t
*
node
,
bool
opt_out
)
{
if
(
node
->
children
>
0
)
{
return
false
;
}
return
knot_nsec_empty_nsec_and_rrsigs_in_node
(
node
)
||
nsec3_opt_out
(
node
,
opt_out
);
return
((
node
->
children
==
0
&&
knot_nsec_empty_nsec_and_rrsigs_in_node
(
node
))
||
nsec3_opt_out
(
node
,
opt_out
));
}
/*!
...
...
tests-extra/tests/dnssec/nsec_update/test.py
View file @
e24762c0
...
...
@@ -22,6 +22,7 @@ for zone in zones:
master
.
dnssec
(
zone
).
nsec3
=
random
.
choice
([
True
,
False
])
master
.
dnssec
(
zone
).
nsec3_iters
=
2
master
.
dnssec
(
zone
).
nsec3_salt_len
=
8
master
.
dnssec
(
zone
).
nsec3_opt_out
=
(
random
.
random
()
<
0.5
)
t
.
start
()
t
.
sleep
(
4
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment