summaryrefslogtreecommitdiff
path: root/lib/http_negotiate.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2019-08-14 09:47:17 +0200
committerKamil Dudka <kdudka@redhat.com>2019-08-26 13:43:21 +0200
commit7e513c1048fc506885ded033a37151309cc71af7 (patch)
tree43dac8acde8cfc6cf3347241d82eece62ae10d81 /lib/http_negotiate.c
parentcac07fb639ddef538e71bdcc907b5c3fefafd45a (diff)
downloadcurl-7e513c1048fc506885ded033a37151309cc71af7.tar.gz
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
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r--lib/http_negotiate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
index fe15dcefb..8e1f3bf68 100644
--- a/lib/http_negotiate.c
+++ b/lib/http_negotiate.c
@@ -148,7 +148,7 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
}
if(!neg_ctx->context) {
result = Curl_input_negotiate(conn, proxy, "Negotiate");
- if(result == CURLE_LOGIN_DENIED) {
+ if(result == CURLE_AUTH_ERROR) {
/* negotiate auth failed, let's continue unauthenticated to stay
* compatible with the behavior before curl-7_64_0-158-g6c6035532 */
authp->done = TRUE;