Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
3977f048
Commit
3977f048
authored
Aug 06, 2013
by
Lubos Slovak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed packet counting for AXFR + error code.
refs
#122
parent
e77cba6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/libknot/updates/xfr-in.c
src/libknot/updates/xfr-in.c
+2
-2
No files found.
src/libknot/updates/xfr-in.c
View file @
3977f048
...
...
@@ -397,7 +397,7 @@ static int xfrin_check_tsig(knot_packet_t *packet, knot_ns_xfr_t *xfr,
if
(
xfr
->
tsig_key
)
{
if
(
tsig_req
&&
tsig
==
NULL
)
{
// TSIG missing!!
return
KNOT_E
MALF
;
return
KNOT_E
NOTSIG
;
}
else
if
(
tsig
!=
NULL
)
{
// TSIG there, either required or not, process
if
(
xfr
->
packet_nr
==
0
)
{
...
...
@@ -894,7 +894,7 @@ dbg_xfrin_exec_verb(
/* Now check if there is not a TSIG record at the end of the packet. */
ret
=
xfrin_check_tsig
(
packet
,
xfr
,
knot_ns_tsig_required
(
xfr
->
packet_nr
));
++
xfr
->
packet_nr
;
//
++xfr->packet_nr;
knot_packet_free
(
&
packet
);
dbg_xfrin_verb
(
"Processed one AXFR packet successfully.
\n
"
);
...
...
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