(krb5_expand_hostname_realms): copy the correct hostname

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7974 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-02-23 03:12:07 +00:00
parent 2f3472173d
commit e2f292367e

View File

@@ -130,7 +130,7 @@ krb5_expand_hostname_realms (krb5_context context,
for (a = ai; a != NULL; a = a->ai_next) { for (a = ai; a != NULL; a = a->ai_next) {
if (a->ai_canonname != NULL) { if (a->ai_canonname != NULL) {
ret = copy_hostname (context, orig_hostname, new_hostname); ret = copy_hostname (context, a->ai_canonname, new_hostname);
if (ret) { if (ret) {
freeaddrinfo (ai); freeaddrinfo (ai);
return ret; return ret;