Skip to content

Commit 1c949ce

Browse files
committed
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.
1 parent 22d013b commit 1c949ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static int auth_context_match(
142142
}
143143

144144
if (!scheme)
145-
return 0;
145+
return -1;
146146

147147
/* See if authentication has already started for this scheme */
148148
git_vector_foreach(&t->auth_contexts, i, c) {

0 commit comments

Comments
 (0)