krb5_sname_to_principal gets the hostname if we tell is host = NULL.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23674 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-08-25 02:33:08 +00:00
parent 1106480143
commit 3a00ceaf3d

View File

@@ -111,12 +111,7 @@ import_hostbased_name (OM_uint32 *minor_status,
*p = '\0';
host = p + 1;
} else {
if (gethostname(local_hostname, sizeof(local_hostname)) < 0) {
*minor_status = errno;
free (tmp);
return GSS_S_FAILURE;
}
host = local_hostname;
host = NULL;
}
kerr = krb5_sname_to_principal (context,