From: Ken Raeburn Date: Tue, 8 May 2001 04:22:23 +0000 (+0000) Subject: * sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned, X-Git-Tag: krb5-1.3-alpha1~1518 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e01dc7300cd2068f8997e6ca7bff33efbaa25914;p=krb5.git * sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned, 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 --- diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index c11fea0f2..5e5ff521e 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,8 @@ +2001-05-08 Ken Raeburn + + * 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 * conv_creds.c (broken, krb524_convert_creds_plain): Unused code diff --git a/src/krb524/sendmsg.c b/src/krb524/sendmsg.c index 555fa939a..c306423a2 100644 --- a/src/krb524/sendmsg.c +++ b/src/krb524/sendmsg.c @@ -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);