Commit 1c949ce1 by Etienne Samson

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.
parent 22d013b6
......@@ -142,7 +142,7 @@ static int auth_context_match(
}
if (!scheme)
return 0;
return -1;
/* See if authentication has already started for this scheme */
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