summaryrefslogtreecommitdiffstats
path: root/contrib/serf/auth/auth_spnego.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/serf/auth/auth_spnego.c')
-rw-r--r--contrib/serf/auth/auth_spnego.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/serf/auth/auth_spnego.c b/contrib/serf/auth/auth_spnego.c
index c0ad27e..e55fad2 100644
--- a/contrib/serf/auth/auth_spnego.c
+++ b/contrib/serf/auth/auth_spnego.c
@@ -335,8 +335,7 @@ do_auth(peer_t peer,
&tmp, &tmp_len,
gss_info);
} else {
- char *proxy_host;
- apr_getnameinfo(&proxy_host, conn->ctx->proxy_address, 0);
+ char *proxy_host = conn->ctx->proxy_address->hostname;
status = gss_api_get_credentials(conn,
token, token_len, proxy_host,
&tmp, &tmp_len,
OpenPOWER on IntegriCloud