]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
ixfr: don't solve (and log) different TTL for RRSIGs
authorLibor Peltan <libor.peltan@nic.cz>
Wed, 25 Sep 2019 12:30:44 +0000 (14:30 +0200)
committerLibor Peltan <libor.peltan@nic.cz>
Wed, 25 Sep 2019 12:30:44 +0000 (14:30 +0200)
src/knot/updates/zone-update.c

index 6f69267b42ebeb11772716b02fca70077921989b..f3bb5469ccae446c740ae897d7002ae3659ba05d 100644 (file)
@@ -389,6 +389,10 @@ void zone_update_clear(zone_update_t *update)
 
 static int solve_add_different_ttl(zone_update_t *update, const knot_rrset_t *add)
 {
+       if (add->type == KNOT_RRTYPE_RRSIG) {
+               return KNOT_EOK;
+       }
+
        const zone_node_t *exist_node = zone_contents_find_node(update->new_cont, add->owner);
        const knot_rrset_t exist_rr = node_rrset(exist_node, add->type);
        if (knot_rrset_empty(&exist_rr) || exist_rr.ttl == add->ttl) {