Commit c9dc30ff by Henning Schaffaf

Fix default credentials: The WinHttpSetCredentials auth scheme must only be one…

Fix default credentials: The WinHttpSetCredentials auth scheme must only be one of the supported schemes.
parent 45a78977
...@@ -184,10 +184,10 @@ static int apply_default_credentials(HINTERNET request, int mechanisms) ...@@ -184,10 +184,10 @@ static int apply_default_credentials(HINTERNET request, int mechanisms)
DWORD native_scheme = 0; DWORD native_scheme = 0;
if ((mechanisms & GIT_WINHTTP_AUTH_NTLM) != 0) if ((mechanisms & GIT_WINHTTP_AUTH_NTLM) != 0)
native_scheme |= WINHTTP_AUTH_SCHEME_NTLM; native_scheme = WINHTTP_AUTH_SCHEME_NTLM;
if ((mechanisms & GIT_WINHTTP_AUTH_NEGOTIATE) != 0) if ((mechanisms & GIT_WINHTTP_AUTH_NEGOTIATE) != 0)
native_scheme |= WINHTTP_AUTH_SCHEME_NEGOTIATE; native_scheme = WINHTTP_AUTH_SCHEME_NEGOTIATE;
if (!native_scheme) { if (!native_scheme) {
giterr_set(GITERR_NET, "invalid authentication scheme"); giterr_set(GITERR_NET, "invalid authentication scheme");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment