]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
dnssec: remove dead code
authorDaniel Salzman <daniel.salzman@nic.cz>
Thu, 8 Nov 2018 19:42:41 +0000 (20:42 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 8 Nov 2018 20:26:27 +0000 (21:26 +0100)
src/knot/dnssec/zone-keys.c

index 10d516d24249f79ae5bb9a01652515f0d3612ea7..a6702d3dc5b4e1f0f41da1b26a83c2f3e065c6ed 100644 (file)
@@ -258,7 +258,7 @@ static bool is_nsec3_allowed(uint8_t algorithm)
 static int walk_algorithms(kdnssec_ctx_t *ctx, zone_keyset_t *keyset)
 {
        uint8_t alg_usage[256] = { 0 };
-       bool keys_changed = false, have_active_alg = false;
+       bool have_active_alg = false;
 
        for (size_t i = 0; i < keyset->count; i++) {
                zone_key_t *key = &keyset->keys[i];
@@ -304,10 +304,6 @@ static int walk_algorithms(kdnssec_ctx_t *ctx, zone_keyset_t *keyset)
                return KNOT_DNSSEC_ENOKEY;
        }
 
-       if (keys_changed) {
-               return kdnssec_ctx_commit(ctx);
-       }
-
        return KNOT_EOK;
 }