Return KRB5_REALM_UNKNOWN if profile_get_values returns
authorTheodore Tso <tytso@mit.edu>
Fri, 7 May 1999 18:41:52 +0000 (18:41 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 7 May 1999 18:41:52 +0000 (18:41 +0000)
PROF_NO_RELATION or PROF_NO_SECTION.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11425 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/locate_kdc.c

index a40a80245a1e18d60ddf427874e3afe83cf08545..8a1dfed9c0c8b04077d08c96610598d6219f4920 100644 (file)
@@ -1,3 +1,9 @@
+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
index d8187ac3a666b69665ae0b64b6b63680b68392bc..68d78efeb14442cf8cde3043ef03f66d6442f866 100644 (file)
@@ -72,13 +72,9 @@ krb5_locate_kdc(context, realm, addr_pp, naddrs, master_index, nmasters)
 
     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;
      }