Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
Knot Resolver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Jonathan Coetzee
Knot Resolver
Commits
f67756a7
Commit
f67756a7
authored
Mar 02, 2018
by
Grigorii Demidov
Committed by
Petr Špaček
Apr 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/zonecut: get rid off incorrect function name
parent
5a518341
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
lib/resolve.c
lib/resolve.c
+1
-1
lib/zonecut.c
lib/zonecut.c
+3
-3
lib/zonecut.h
lib/zonecut.h
+1
-1
No files found.
lib/resolve.c
View file @
f67756a7
...
...
@@ -268,7 +268,7 @@ static int ns_fetch_cut(struct kr_query *qry, const knot_dname_t *requested_name
}
/* Check if any DNSKEY found for cached cut */
if
(
qry
->
flags
.
DNSSEC_WANT
&&
cut_found
.
key
==
NULL
&&
!
kr_zonecut_
is_any
_glue
(
&
cut_found
))
{
!
kr_zonecut_
has
_glue
(
&
cut_found
))
{
/* Cut found and there are no proofs of zone insecurity.
* But no DNSKEY found and no glue fetched.
* We have got circular dependency - must fetch A\AAAA
...
...
lib/zonecut.c
View file @
f67756a7
...
...
@@ -250,7 +250,7 @@ pack_t *kr_zonecut_find(struct kr_zonecut *cut, const knot_dname_t *ns)
return
map_get
(
nsset
,
key
);
}
static
int
is_any
_glue
(
const
char
*
k
,
void
*
v
,
void
*
baton
)
static
int
has
_glue
(
const
char
*
k
,
void
*
v
,
void
*
baton
)
{
bool
*
glue_found
=
(
bool
*
)
baton
;
if
(
*
glue_found
)
{
...
...
@@ -265,7 +265,7 @@ static int is_any_glue(const char *k, void *v, void *baton)
return
kr_ok
();
}
bool
kr_zonecut_
is_any
_glue
(
struct
kr_zonecut
*
cut
)
bool
kr_zonecut_
has
_glue
(
struct
kr_zonecut
*
cut
)
{
if
(
!
cut
)
{
return
false
;
...
...
@@ -274,7 +274,7 @@ bool kr_zonecut_is_any_glue(struct kr_zonecut *cut)
bool
glue_found
=
false
;
map_t
*
nsset
=
&
cut
->
nsset
;
map_walk
(
nsset
,
is_any
_glue
,
&
glue_found
);
map_walk
(
nsset
,
has
_glue
,
&
glue_found
);
return
glue_found
;
}
...
...
lib/zonecut.h
View file @
f67756a7
...
...
@@ -157,4 +157,4 @@ int kr_zonecut_find_cached(struct kr_context *ctx, struct kr_zonecut *cut,
* @return true/false
*/
KR_EXPORT
bool
kr_zonecut_
is_any
_glue
(
struct
kr_zonecut
*
cut
);
bool
kr_zonecut_
has
_glue
(
struct
kr_zonecut
*
cut
);
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