(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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user