]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
keymgr_keyrole couldn't emit "NOSIGN".
authorMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 05:04:09 +0000 (16:04 +1100)
committerMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 07:37:17 +0000 (18:37 +1100)
 92        } else {
 93                return ("ZSK");
 94        }

CID 1455900 (#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: return "NOSIGN";.

 95        return ("NOSIGN");

lib/dns/keymgr.c

index 8c1441cacd4028e7ca830623df03085fa138a4e9..61bb3182e7e7416d1eacacf0c631bf8fe17bdf88 100644 (file)
@@ -89,7 +89,7 @@ keymgr_keyrole(dst_key_t* key)
                return ("CSK");
        } else if (ksk) {
                return ("KSK");
-       } else {
+       } else if (zsk) {
                return ("ZSK");
        }
        return ("NOSIGN");