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
Knot projects
Knot DNS
Commits
6e584395
Commit
6e584395
authored
Jul 22, 2014
by
Jan Kadlec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddns: Do not ignore mismatched TTL.
parent
525a5814
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
13 deletions
+2
-13
src/knot/updates/apply.c
src/knot/updates/apply.c
+0
-6
src/knot/updates/changesets.c
src/knot/updates/changesets.c
+1
-6
src/knot/updates/ddns.c
src/knot/updates/ddns.c
+1
-1
No files found.
src/knot/updates/apply.c
View file @
6e584395
...
...
@@ -18,17 +18,11 @@
#include "knot/updates/apply.h"
#include "common/debug.h"
#include "libknot/packet/pkt.h"
#include "libknot/processing/process.h"
#include "libknot/dname.h"
#include "knot/zone/zone.h"
#include "libknot/common.h"
#include "knot/updates/changesets.h"
#include "knot/zone/zonefile.h"
#include "common/lists.h"
#include "common/descriptor.h"
#include "libknot/util/utils.h"
#include "libknot/rrtype/soa.h"
/* --------------------------- Update cleanup ------------------------------- */
...
...
src/knot/updates/changesets.c
View file @
6e584395
...
...
@@ -33,12 +33,7 @@ static int add_rr_to_zone(zone_contents_t *z, const knot_rrset_t *rrset)
zone_node_t
*
n
=
NULL
;
int
ret
=
zone_contents_add_rr
(
z
,
rrset
,
&
n
);
UNUSED
(
n
);
if
(
ret
!=
KNOT_ETTL
)
{
return
ret
;
}
else
{
// Ignore TTL errors
return
KNOT_EOK
;
}
return
ret
;
}
void
changeset_init
(
changeset_t
*
ch
,
const
knot_dname_t
*
apex
,
mm_ctx_t
*
mm
)
...
...
src/knot/updates/ddns.c
View file @
6e584395
...
...
@@ -873,7 +873,7 @@ static uint16_t ret_to_rcode(int ret)
{
if
(
ret
==
KNOT_EMALF
)
{
return
KNOT_RCODE_FORMERR
;
}
else
if
(
ret
==
KNOT_EDENIED
)
{
}
else
if
(
ret
==
KNOT_EDENIED
||
ret
==
KNOT_ETTL
)
{
return
KNOT_RCODE_REFUSED
;
}
else
{
return
KNOT_RCODE_SERVFAIL
;
...
...
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