PROF_NO_RELATION or PROF_NO_SECTION.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11425
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri May 7 14:39:08 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * locate_kdc.c (krb5_locate_kdc): Return KRB5_REALM_UNKNOWN if
+ profile_get_values returns PROF_NO_RELATION or
+ PROF_NO_SECTION.
+
1999-04-01 Theodore Ts'o <tytso@rsts-11.mit.edu>
* prompter.c (krb5_prompter_posix): Update to use new prompter
code = profile_get_values(context->profile, realm_kdc_names, &hostlist);
- if (code == PROF_NO_SECTION) {
- krb5_xfree(host);
- return KRB5_REALM_UNKNOWN;
- } else if (code == PROF_NO_RELATION) {
- krb5_xfree(host);
- return KRB5_CONFIG_BADFORMAT;
- } else if (code) {
+ if (code) {
+ if (code == PROF_NO_SECTION || code == PROF_NO_RELATION) {
+ code = KRB5_REALM_UNKNOWN;
krb5_xfree(host);
return code;
}