Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Kahn Gillmor
Knot DNS Resolver
Commits
8b8c7971
Commit
8b8c7971
authored
Feb 12, 2016
by
Grigorii Demidov
Browse files
dnssec/nsec3: missed kr_error() fixed
parent
79179e8a
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/dnssec/nsec3.c
View file @
8b8c7971
...
...
@@ -681,10 +681,10 @@ int kr_nsec3_no_data_ds(const knot_pkt_t *pkt, knot_section_t section_id,
assert
(
encloser_name
&&
covering_next_nsec3
);
if
(
!
has_optout
(
covering_next_nsec3
))
{
ret
=
DNSSEC_NOT_FOUND
;
/* Don't satisfies RFC5155 8.6, second paragraph. */
ret
=
kr_error
(
DNSSEC_NOT_FOUND
);
}
/* Satisfies RFC5155 8.6, second paragraph. */
return
ret
;
}
...
...
@@ -727,7 +727,7 @@ int kr_nsec3_no_data_no_ds(const knot_pkt_t *pkt, knot_section_t section_id,
* denial of existance can not be proven.
* Set error code to proceed unsecure.
*/
ret
=
DNSSEC_NOT_FOUND
;
ret
=
kr_error
(
DNSSEC_NOT_FOUND
)
;
}
return
ret
;
...
...
lib/layer/validate.c
View file @
8b8c7971
...
...
@@ -425,7 +425,7 @@ static int validate(knot_layer_t *ctx, knot_pkt_t *pkt)
ret
=
kr_nsec3_no_data_no_ds
(
pkt
,
KNOT_AUTHORITY
,
knot_pkt_qname
(
pkt
),
knot_pkt_qtype
(
pkt
));
}
if
(
ret
!=
0
)
{
if
(
has_nsec3
&&
(
ret
==
DNSSEC_NOT_FOUND
))
{
if
(
has_nsec3
&&
(
ret
==
kr_error
(
DNSSEC_NOT_FOUND
))
)
{
DEBUG_MSG
(
qry
,
"<= can't prove NODATA due to optout, going insecure
\n
"
);
qry
->
flags
&=
~
QUERY_DNSSEC_WANT
;
qry
->
flags
|=
QUERY_DNSSEC_INSECURE
;
...
...
Write
Preview
Supports
Markdown
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