From 5c270f13fd2bb5509be8e8427dc7f3ea28ea0805 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Tue, 12 Dec 1995 19:45:23 +0000 Subject: * krb524d.c: Changed krb5_db_fetch_mkey() such that it will only try to set the enctype of the keyblock if the keyblock had it set to ENCTYPE_UNKNOWN. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7211 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb524/krb524d.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/krb524/krb524d.c') diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index 1c83b3866..6522e7551 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -227,7 +227,9 @@ void init_master(context) free(realm); } - master_keyblock.enctype = NULL; /* Look up the stashed enctype */ + /* Use the stashed enctype */ + master_keyblock.enctype = ENCTYPE_UNKNOWN; + if ((ret = krb5_db_fetch_mkey(context, master_princ, &master_encblock, FALSE, /* non-manual type-in */ FALSE, /* irrelevant, given prev. arg */ -- cgit