From 3dac03d47a92000cd1a060f6463ee8bdd45d74dd Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 8 May 2001 16:10:10 +0000 Subject: [PATCH] (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 --- lib/krb5/send_to_kdc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/krb5/send_to_kdc.c b/lib/krb5/send_to_kdc.c index b07f2770a..c1c645695 100644 --- a/lib/krb5/send_to_kdc.c +++ b/lib/krb5/send_to_kdc.c @@ -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; }