From 4886c8add455b83d54ec180f4b120f0998cf3367 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 20 Jul 1997 14:31:04 +0000 Subject: [PATCH] correct typo git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2499 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/get_host_realm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/get_host_realm.c b/lib/krb5/get_host_realm.c index 8c6b3818b..6494bb96e 100644 --- a/lib/krb5/get_host_realm.c +++ b/lib/krb5/get_host_realm.c @@ -78,7 +78,7 @@ krb5_get_host_realm(krb5_context context, if (hostent == NULL && addr.s_addr != INADDR_NONE) hostent = gethostbyaddr ((const char *)&addr, sizeof(addr), AF_INET); if (hostent != NULL) - host = hostent->h_addr; + host = hostent->h_name; *realms = malloc(2 * sizeof(char*)); if (*realms == NULL)