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
16
Merge Requests
16
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
ae76b4fb
Commit
ae76b4fb
authored
Oct 06, 2015
by
Marek Vavruša
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/validate: do not revalidate nodata/nxdomain proofs
parent
698cc728
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/layer/validate.c
lib/layer/validate.c
+2
-2
No files found.
lib/layer/validate.c
View file @
ae76b4fb
...
...
@@ -371,7 +371,7 @@ static int validate(knot_layer_t *ctx, knot_pkt_t *pkt)
uint8_t
pkt_rcode
=
knot_wire_get_rcode
(
pkt
->
wire
);
/* Validate non-existence proof if not positive answer. */
if
(
pkt_rcode
==
KNOT_RCODE_NXDOMAIN
)
{
if
(
!
(
qry
->
flags
&
QUERY_CACHED
)
&&
pkt_rcode
==
KNOT_RCODE_NXDOMAIN
)
{
/* @todo If knot_pkt_qname(pkt) is used instead of qry->sname then the tests crash. */
if
(
!
has_nsec3
)
{
ret
=
kr_nsec_name_error_response_check
(
pkt
,
KNOT_AUTHORITY
,
qry
->
sname
,
&
req
->
pool
);
...
...
@@ -388,7 +388,7 @@ static int validate(knot_layer_t *ctx, knot_pkt_t *pkt)
/* @todo WTH, this needs API that just tries to find a proof and the caller
* doesn't have to worry about NSEC/NSEC3
* @todo rework this */
{
if
(
!
(
qry
->
flags
&
QUERY_CACHED
))
{
const
knot_pktsection_t
*
sec
=
knot_pkt_section
(
pkt
,
KNOT_ANSWER
);
uint16_t
answer_count
=
sec
?
sec
->
count
:
0
;
...
...
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