Skip to content

Commit 6a10b80

Browse files
committed
winhttp: clarify invalid cert case
1 parent 1697e90 commit 6a10b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/winhttp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ static int send_request(winhttp_stream *s, size_t len, bool chunked)
889889
}
890890
}
891891

892-
if (!request_failed || send_request_error == ERROR_WINHTTP_SECURE_FAILURE) {
892+
if (!request_failed || !cert_valid) {
893893
git_error_clear();
894894
if ((error = certificate_check(s, cert_valid)) < 0) {
895895
if (!git_error_last())

0 commit comments

Comments
 (0)