use roken* macros
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3700 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -73,9 +73,11 @@ krb5_get_host_realm(krb5_context context,
|
||||
}
|
||||
|
||||
addr.s_addr = inet_addr(host);
|
||||
hostent = gethostbyname (host);
|
||||
hostent = roken_gethostbyname (host);
|
||||
if (hostent == NULL && addr.s_addr != INADDR_NONE)
|
||||
hostent = gethostbyaddr ((const char *)&addr, sizeof(addr), AF_INET);
|
||||
hostent = roken_gethostbyaddr ((const char *)&addr,
|
||||
sizeof(addr),
|
||||
AF_INET);
|
||||
if (hostent != NULL)
|
||||
host = hostent->h_name;
|
||||
|
||||
|
Reference in New Issue
Block a user