summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/init_ctx.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>1999-12-06 21:52:07 +0000
committerKen Raeburn <raeburn@mit.edu>1999-12-06 21:52:07 +0000
commitf4fe08e183e297201c444b1d68f0e9299b12535d (patch)
tree3c9167f547195057fdc4407e744b049d13541729 /src/lib/krb5/krb/init_ctx.c
parent4ae5aea3e465fe90e5d6aba4d77f38aee3f8df73 (diff)
downloadkrb5-f4fe08e183e297201c444b1d68f0e9299b12535d.tar.gz
krb5-f4fe08e183e297201c444b1d68f0e9299b12535d.tar.xz
krb5-f4fe08e183e297201c444b1d68f0e9299b12535d.zip
* init_ctx.c (get_profile_etype_list): Report an error if no
recognized enctypes are found in the config file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11949 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/init_ctx.c')
-rw-r--r--src/lib/krb5/krb/init_ctx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c
index a6006a591..6fa773f73 100644
--- a/src/lib/krb5/krb/init_ctx.c
+++ b/src/lib/krb5/krb/init_ctx.c
@@ -364,6 +364,12 @@ get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list, desonly)
profile_release_string(retval);
}
+ if (old_ktypes[0] == 0) {
+ free (old_ktypes);
+ *ktypes = 0;
+ return KRB5_CONFIG_ETYPE_NOSUPP;
+ }
+
*ktypes = old_ktypes;
return 0;
}