use dns_canonize_hostname to determin if we should talk to dns to find
the canonical name of the host. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18505 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -62,6 +62,9 @@ krb5_expand_hostname (krb5_context context,
|
||||
struct addrinfo *ai, *a, hints;
|
||||
int error;
|
||||
|
||||
if (!context->dns_canonize_hostname)
|
||||
return copy_hostname (context, orig_hostname, new_hostname);
|
||||
|
||||
memset (&hints, 0, sizeof(hints));
|
||||
hints.ai_flags = AI_CANONNAME;
|
||||
|
||||
@@ -124,6 +127,10 @@ krb5_expand_hostname_realms (krb5_context context,
|
||||
int error;
|
||||
krb5_error_code ret = 0;
|
||||
|
||||
if (!context->dns_canonize_hostname)
|
||||
return vanilla_hostname (context, orig_hostname, new_hostname,
|
||||
realms);
|
||||
|
||||
memset (&hints, 0, sizeof(hints));
|
||||
hints.ai_flags = AI_CANONNAME;
|
||||
|
||||
|
Reference in New Issue
Block a user