From e2f292367ed90329418671e4ae33525d966a0c94 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 23 Feb 2000 03:12:07 +0000 Subject: [PATCH] (krb5_expand_hostname_realms): copy the correct hostname git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7974 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/expand_hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/expand_hostname.c b/lib/krb5/expand_hostname.c index 9707e2ccd..6cf4612b5 100644 --- a/lib/krb5/expand_hostname.c +++ b/lib/krb5/expand_hostname.c @@ -130,7 +130,7 @@ krb5_expand_hostname_realms (krb5_context context, for (a = ai; a != NULL; a = a->ai_next) { if (a->ai_canonname != NULL) { - ret = copy_hostname (context, orig_hostname, new_hostname); + ret = copy_hostname (context, a->ai_canonname, new_hostname); if (ret) { freeaddrinfo (ai); return ret;