diff options
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r-- | lib/http_negotiate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index 2dc09eed3..df0d6ab84 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -71,10 +71,10 @@ get_gss_name(struct connectdata *conn, gss_name_t *server) else service = "http"; - token.length = strlen(service) + 1 + strlen(conn->hostname) + 1; + token.length = strlen(service) + 1 + strlen(conn->host.name) + 1; if (token.length + 1 > sizeof(name)) return EMSGSIZE; - sprintf(name, "%s@%s", service, conn->hostname); + sprintf(name, "%s@%s", service, conn->host.name); token.value = (void *) name; major_status = gss_import_name(&minor_status, |