Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonathan Coetzee
Knot Resolver
Commits
901c821a
Commit
901c821a
authored
Apr 09, 2018
by
Grigorii Demidov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iterate: move structure declaratin outside of ifdef block
parent
614d12a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lib/layer/iterate.c
lib/layer/iterate.c
+1
-2
No files found.
lib/layer/iterate.c
View file @
901c821a
...
...
@@ -382,6 +382,7 @@ static int process_authority(knot_pkt_t *pkt, struct kr_request *req)
}
const
knot_pktsection_t
*
ns
=
knot_pkt_section
(
pkt
,
KNOT_AUTHORITY
);
const
knot_pktsection_t
*
an
=
knot_pkt_section
(
pkt
,
KNOT_ANSWER
);
#ifdef STRICT_MODE
/* AA, terminate resolution chain. */
...
...
@@ -389,9 +390,7 @@ static int process_authority(knot_pkt_t *pkt, struct kr_request *req)
return
KR_STATE_CONSUME
;
}
#else
/* Work around servers sending back CNAME with different delegation and no AA. */
const
knot_pktsection_t
*
an
=
knot_pkt_section
(
pkt
,
KNOT_ANSWER
);
if
(
an
->
count
>
0
&&
ns
->
count
>
0
)
{
const
knot_rrset_t
*
rr
=
knot_pkt_rr
(
an
,
0
);
if
(
rr
->
type
==
KNOT_RRTYPE_CNAME
)
{
...
...
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