Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
9edb13a9
Commit
9edb13a9
authored
Apr 06, 2016
by
Vitezslav Kriz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added semantic checks for ixfr transfer
parent
b555d991
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/knot/nameserver/ixfr.c
src/knot/nameserver/ixfr.c
+12
-0
No files found.
src/knot/nameserver/ixfr.c
View file @
9edb13a9
...
...
@@ -22,6 +22,7 @@
#include "knot/nameserver/internet.h"
#include "knot/updates/apply.h"
#include "knot/zone/serial.h"
#include "knot/zone/semantic-check.h"
#include "libknot/libknot.h"
#include "contrib/mempattern.h"
#include "contrib/print.h"
...
...
@@ -388,6 +389,17 @@ static int ixfrin_finalize(struct answer_data *adata)
return
ret
;
}
err_handler_t
err_handler
;
err_handler_init
(
&
err_handler
);
ret
=
zone_do_sem_checks
(
new_contents
,
0
,
&
err_handler
,
NULL
,
NULL
);
if
(
ret
!=
KNOT_EOK
)
{
IXFRIN_LOG
(
LOG_WARNING
,
"failed to apply changes to zone (%s)"
,
knot_strerror
(
KNOT_ESEMCHECK
));
update_rollback
(
&
a_ctx
);
update_free_zone
(
&
new_contents
);
return
ret
;
}
/* Write changes to journal. */
ret
=
zone_changes_store
(
adata
->
param
->
conf
,
ixfr
->
zone
,
&
ixfr
->
changesets
);
if
(
ret
!=
KNOT_EOK
)
{
...
...
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