Commit 6e584395 authored by Jan Kadlec's avatar Jan Kadlec

ddns: Do not ignore mismatched TTL.

parent 525a5814
...@@ -18,17 +18,11 @@ ...@@ -18,17 +18,11 @@
#include "knot/updates/apply.h" #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 "knot/zone/zone.h"
#include "libknot/common.h" #include "libknot/common.h"
#include "knot/updates/changesets.h" #include "knot/updates/changesets.h"
#include "knot/zone/zonefile.h" #include "knot/zone/zonefile.h"
#include "common/lists.h" #include "common/lists.h"
#include "common/descriptor.h"
#include "libknot/util/utils.h"
#include "libknot/rrtype/soa.h" #include "libknot/rrtype/soa.h"
/* --------------------------- Update cleanup ------------------------------- */ /* --------------------------- Update cleanup ------------------------------- */
......
...@@ -33,12 +33,7 @@ static int add_rr_to_zone(zone_contents_t *z, const knot_rrset_t *rrset) ...@@ -33,12 +33,7 @@ static int add_rr_to_zone(zone_contents_t *z, const knot_rrset_t *rrset)
zone_node_t *n = NULL; zone_node_t *n = NULL;
int ret = zone_contents_add_rr(z, rrset, &n); int ret = zone_contents_add_rr(z, rrset, &n);
UNUSED(n); UNUSED(n);
if (ret != KNOT_ETTL) { return ret;
return ret;
} else {
// Ignore TTL errors
return KNOT_EOK;
}
} }
void changeset_init(changeset_t *ch, const knot_dname_t *apex, mm_ctx_t *mm) void changeset_init(changeset_t *ch, const knot_dname_t *apex, mm_ctx_t *mm)
......
...@@ -873,7 +873,7 @@ static uint16_t ret_to_rcode(int ret) ...@@ -873,7 +873,7 @@ static uint16_t ret_to_rcode(int ret)
{ {
if (ret == KNOT_EMALF) { if (ret == KNOT_EMALF) {
return KNOT_RCODE_FORMERR; return KNOT_RCODE_FORMERR;
} else if (ret == KNOT_EDENIED) { } else if (ret == KNOT_EDENIED || ret == KNOT_ETTL) {
return KNOT_RCODE_REFUSED; return KNOT_RCODE_REFUSED;
} else { } else {
return KNOT_RCODE_SERVFAIL; return KNOT_RCODE_SERVFAIL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment