Prevent null dereference with keyboard master key If krb5_db_fetch_mkey() prompts for a master key and needs to determine the kvno, check that the master entry contains any key data before dereferencing the first element. Reported by Joshua Schaeffer. (cherry picked from commit 29c504504f0c56c861d968ba2498590bf34714cd) https://github.com/krb5/krb5/commit/615506789cc7299e4e7b859d163f680228f1b724 Author: Greg Hudson Commit: 615506789cc7299e4e7b859d163f680228f1b724 Branch: krb5-1.15 src/lib/kdb/kdb5.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)