mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 06:37:42 -04:00
DNS_KEYTYPE_NOKEY is only applicable to KEY
(cherry picked from commit 53c6721abc)
This commit is contained in:
parent
080299bf49
commit
4a1ebbedad
1 changed files with 3 additions and 1 deletions
|
|
@ -596,7 +596,9 @@ keygen(keygen_ctx_t *ctx, isc_mem_t *mctx, int argc, char **argv) {
|
|||
break;
|
||||
}
|
||||
|
||||
if ((flags & DNS_KEYFLAG_TYPEMASK) == DNS_KEYTYPE_NOKEY) {
|
||||
if ((flags & DNS_KEYFLAG_TYPEMASK) == DNS_KEYTYPE_NOKEY &&
|
||||
(ctx->options & DST_TYPE_KEY) != 0)
|
||||
{
|
||||
null_key = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue