From: Tom Yu Date: Thu, 16 Nov 2006 21:18:50 +0000 (+0000) Subject: pull up r18816 from trunk X-Git-Tag: krb5-1.6-beta1~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea38c39284566a7e3e7a576260a16ce740cb8c16;p=krb5.git pull up r18816 from trunk r18816@cathode-dark-space: raeburn | 2006-11-15 20:19:01 -0500 ticket: new subject: include realm in "can't resolve KDC" error message target_version: 1.6 tags: pullup * locate_kdc.c (krb5int_locate_server): Store an error message for REALM_CANT_RESOLVE error that lists the realm. ticket: 4775 version_fixed: 1.6 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@18826 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index db176a776..57e2456b9 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -814,6 +814,10 @@ krb5int_locate_server (krb5_context context, const krb5_data *realm, if (al.naddrs == 0) { /* No good servers */ if (al.space) free_list (&al); + krb5_set_error_message(context, KRB5_REALM_CANT_RESOLVE, + "Cannot resolve network address for KDC in realm %.*s", + realm->length, realm->data); + return KRB5_REALM_CANT_RESOLVE; } *addrlist = al;