* sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned,
authorKen Raeburn <raeburn@mit.edu>
Tue, 8 May 2001 04:22:23 +0000 (04:22 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 8 May 2001 04:22:23 +0000 (04:22 +0000)
as might happen if the DNS support is not enabled.

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

src/krb524/ChangeLog
src/krb524/sendmsg.c

index c11fea0f2aa2626f3bb12e9819055ef529bb06d2..5e5ff521e089eb5671107f471aaccf574fe53160 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-08  Ken Raeburn  <raeburn@mit.edu>
+
+       * sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN
+       is returned, as might happen if the DNS support is not enabled.
+
 2001-04-26  Ken Raeburn  <raeburn@mit.edu>
 
        * conv_creds.c (broken, krb524_convert_creds_plain): Unused code
index 555fa939acb49cd956fe4ea4a0a373b0b83f0e48..c306423a2f6563508ce27b8c344ef3333f316556 100644 (file)
@@ -93,7 +93,7 @@ krb524_sendto_kdc (context, message, realm, reply)
     retval = internals.krb5_locate_server(context, realm, &addr, &naddr, 0,
                                          "krb524_server", "_krb524",
                                          0, port, 0);
-    if (retval == KRB5_REALM_CANT_RESOLVE) {
+    if (retval == KRB5_REALM_CANT_RESOLVE || retval == KRB5_REALM_UNKNOWN) {
        /* Fallback heuristic: Assume krb524 port on every KDC might
           work.  */
        retval = internals.krb5_locate_kdc(context, realm, &addr, &naddr, 0);