diff options
-rw-r--r-- | src/lib/kdb/kdb_default.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/kdb/kdb_default.c b/src/lib/kdb/kdb_default.c index 31b3e69..9301f1d 100644 --- a/src/lib/kdb/kdb_default.c +++ b/src/lib/kdb/kdb_default.c @@ -449,6 +449,11 @@ krb5_def_fetch_mkey_list(krb5_context context, if (retval) return (retval); + if (master_entry->n_key_data == 0) { + retval = KRB5_KDB_NOMASTERKEY; + goto clean_n_exit; + } + /* * Check if the input mkey is the latest key and if it isn't then find the * latest mkey. |