(krb5_sendto_kdc2): try to tell what realm we didn't manage to reach

any KDC for in the error string


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9867 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-05-08 16:10:10 +00:00
parent 8f0dc8ec52
commit 3dac03d47a

View File

@@ -300,7 +300,7 @@ send_via_proxy (krb5_context context,
}
/*
* Send the data `send' to one KDC in `realm' and get back the reply
* Send the data `send' to one hots in `hostlist' and get back the reply
* in `receive'.
*/
@@ -412,6 +412,9 @@ krb5_sendto_kdc2(krb5_context context,
return ret;
ret = krb5_sendto(context, send, hostlist, port, receive);
krb5_free_krbhst (context, hostlist);
if (ret == KRB5_KDC_UNREACH)
krb5_set_error_string(context,
"unable to reach any KDC in realm %s", *realm);
return ret;
}