correct typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2499 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -78,7 +78,7 @@ krb5_get_host_realm(krb5_context context,
|
|||||||
if (hostent == NULL && addr.s_addr != INADDR_NONE)
|
if (hostent == NULL && addr.s_addr != INADDR_NONE)
|
||||||
hostent = gethostbyaddr ((const char *)&addr, sizeof(addr), AF_INET);
|
hostent = gethostbyaddr ((const char *)&addr, sizeof(addr), AF_INET);
|
||||||
if (hostent != NULL)
|
if (hostent != NULL)
|
||||||
host = hostent->h_addr;
|
host = hostent->h_name;
|
||||||
|
|
||||||
*realms = malloc(2 * sizeof(char*));
|
*realms = malloc(2 * sizeof(char*));
|
||||||
if (*realms == NULL)
|
if (*realms == NULL)
|
||||||
|
Reference in New Issue
Block a user