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
6035b7f8
Commit
6035b7f8
authored
Jan 08, 2014
by
Marek Vavrusa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed TSIG for incoming transfers.
parent
6bf9db6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/libknot/updates/xfr-in.c
src/libknot/updates/xfr-in.c
+3
-6
No files found.
src/libknot/updates/xfr-in.c
View file @
6035b7f8
...
...
@@ -290,18 +290,15 @@ static int xfrin_check_tsig(knot_pkt_t *packet, knot_ns_xfr_t *xfr,
* If we are not expecting it (i.e. xfr->prev_digest_size <= 0) and
* it is there => it should probably be considered an error
*/
int
ret
=
knot_pkt_parse_rr
(
packet
,
0
);
if
(
ret
!=
KNOT_EOK
)
{
return
ret
;
}
int
ret
=
KNOT_EOK
;
if
(
xfr
->
tsig_key
)
{
// just append the wireformat to the TSIG data
assert
(
KNOT_NS_TSIG_DATA_MAX_SIZE
-
xfr
->
tsig_data_size
>=
xfr
->
wire_size
);
uint8_t
*
wire_buf
=
xfr
->
tsig_data
+
xfr
->
tsig_data_size
;
memcpy
(
wire_buf
,
xfr
->
wire
,
xfr
->
wire_
size
);
xfr
->
tsig_data_size
+=
xfr
->
wire_
size
;
memcpy
(
wire_buf
,
packet
->
wire
,
packet
->
size
);
xfr
->
tsig_data_size
+=
packet
->
size
;
}
if
(
xfr
->
tsig_key
)
{
...
...
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