Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot Resolver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
124
Issues
124
List
Boards
Labels
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot Resolver
Commits
422b5f19
Commit
422b5f19
authored
Jun 28, 2017
by
Vladimír Čunát
Browse files
Options
Browse Files
Download
Plain Diff
Merge
!320
: dnssec/nsec: add a precaution for DS nodata
parents
b29f002d
de979a3b
Pipeline
#7094
canceled with stages
in 76 minutes and 34 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
lib/dnssec/nsec.c
lib/dnssec/nsec.c
+8
-1
No files found.
lib/dnssec/nsec.c
View file @
422b5f19
...
...
@@ -237,7 +237,14 @@ static int no_data_response_check_rrtype(int *flags, const knot_rrset_t *nsec,
if
(
!
kr_nsec_bitmap_contains_type
(
bm
,
bm_size
,
type
))
{
/* The type is not listed in the NSEC bitmap. */
*
flags
|=
FLG_NOEXIST_RRTYPE
;
/* Security feature: in case of DS also check for SOA
* non-existence to be more certain that we don't hold
* a child-side NSEC by some mistake (e.g. when forwarding).
* See RFC4035 5.2, next-to-last paragraph. */
if
(
type
!=
KNOT_RRTYPE_DS
||
!
kr_nsec_bitmap_contains_type
(
bm
,
bm_size
,
KNOT_RRTYPE_SOA
))
{
*
flags
|=
FLG_NOEXIST_RRTYPE
;
}
}
return
kr_ok
();
...
...
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