summaryrefslogtreecommitdiff
path: root/lib/vauth
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2019-05-06 14:16:35 +0200
committerKamil Dudka <kdudka@redhat.com>2019-05-09 09:41:14 +0200
commitf65845c1eccc02385cdfb22bf2e521e670f7b295 (patch)
tree70f065732bba9b00e4ad4187c83560938d950876 /lib/vauth
parent067c2c1c040df1b583eff7048e4cc2c7fe4b0981 (diff)
downloadcurl-f65845c1eccc02385cdfb22bf2e521e670f7b295.tar.gz
spnego_gssapi: fix return code on gss_init_sec_context() failure
Fixes #3726 Closes #3849
Diffstat (limited to 'lib/vauth')
-rw-r--r--lib/vauth/spnego_gssapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vauth/spnego_gssapi.c b/lib/vauth/spnego_gssapi.c
index 7c4bd4b59..de8bde2ba 100644
--- a/lib/vauth/spnego_gssapi.c
+++ b/lib/vauth/spnego_gssapi.c
@@ -170,7 +170,7 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
Curl_gss_log_error(data, "gss_init_sec_context() failed: ",
major_status, minor_status);
- return CURLE_OUT_OF_MEMORY;
+ return CURLE_LOGIN_DENIED;
}
if(!output_token.value || !output_token.length) {