From 3a00ceaf3de4141af8dcc0ac8dab845fdcd0c8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 25 Aug 2008 02:33:08 +0000 Subject: [PATCH] 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 --- lib/gssapi/krb5/import_name.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/gssapi/krb5/import_name.c b/lib/gssapi/krb5/import_name.c index 5d51235b7..ad5e537d2 100644 --- a/lib/gssapi/krb5/import_name.c +++ b/lib/gssapi/krb5/import_name.c @@ -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,