From 7e513c1048fc506885ded033a37151309cc71af7 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Wed, 14 Aug 2019 09:47:17 +0200 Subject: vauth: return CURLE_AUTH_ERROR on gss_init_sec_context() failure This is a follow-up to https://github.com/curl/curl/pull/3864 . Closes #4224 --- lib/vauth/spnego_sspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vauth/spnego_sspi.c') diff --git a/lib/vauth/spnego_sspi.c b/lib/vauth/spnego_sspi.c index 13d7a4cfe..13e20db39 100644 --- a/lib/vauth/spnego_sspi.c +++ b/lib/vauth/spnego_sspi.c @@ -165,7 +165,7 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data, nego->p_identity, NULL, NULL, nego->credentials, &expiry); if(nego->status != SEC_E_OK) - return CURLE_LOGIN_DENIED; + return CURLE_AUTH_ERROR; /* Allocate our new context handle */ nego->context = calloc(1, sizeof(CtxtHandle)); -- cgit v1.2.3