Commit 4ca4c7d1 by Etienne Samson Committed by Patrick Steinhardt

transport/http: do not return success if we failed to get a scheme

Otherwise we return a NULL context, which will get dereferenced in 
apply_credentials.

(cherry picked from commit 1c949ce1)
parent e78f9f66
...@@ -142,7 +142,7 @@ static int auth_context_match( ...@@ -142,7 +142,7 @@ static int auth_context_match(
} }
if (!scheme) if (!scheme)
return 0; return -1;
/* See if authentication has already started for this scheme */ /* See if authentication has already started for this scheme */
git_vector_foreach(&t->auth_contexts, i, c) { git_vector_foreach(&t->auth_contexts, i, c) {
......
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