From f3fc3d021d56f4842d4f4ce556ace446b8496e3f Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Wed, 29 Oct 2014 14:14:17 +0000 Subject: sspi: Return CURLE_LOGIN_DENIED on AcquireCredentialsHandle() failure Return a more appropriate error, rather than CURLE_OUT_OF_MEMORY when acquiring the credentials handle fails. This is then consistent with the code prior to commit f7e24683c4 when log-in credentials were empty. --- lib/curl_ntlm_msgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/curl_ntlm_msgs.c') diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c index 92211aa97..14ddc5f9c 100644 --- a/lib/curl_ntlm_msgs.c +++ b/lib/curl_ntlm_msgs.c @@ -477,7 +477,7 @@ CURLcode Curl_ntlm_create_type1_message(const char *userp, ntlm->p_identity, NULL, NULL, ntlm->credentials, &expiry); if(status != SEC_E_OK) - return CURLE_OUT_OF_MEMORY; + return CURLE_LOGIN_DENIED; /* Allocate our new context handle */ ntlm->context = malloc(sizeof(CtxtHandle)); -- cgit v1.2.3