diff options
| author | Ian Hattendorf <ianh@axosoft.com> | 2020-06-24 08:53:46 -0700 |
|---|---|---|
| committer | Ian Hattendorf <ianh@axosoft.com> | 2020-06-24 08:53:46 -0700 |
| commit | 6a10b80201fe26288b60bf7dda568408e75ffb88 (patch) | |
| tree | 759f96dd6cd959ca17d0eff6218a092180399791 /src/transports | |
| parent | 1697e90f90162a41e2c98cb7354fc69b0b7ec630 (diff) | |
| download | libgit2-6a10b80201fe26288b60bf7dda568408e75ffb88.tar.gz | |
winhttp: clarify invalid cert case
Diffstat (limited to 'src/transports')
| -rw-r--r-- | src/transports/winhttp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c index 98e80ab7e..89cbaeb47 100644 --- a/src/transports/winhttp.c +++ b/src/transports/winhttp.c @@ -889,7 +889,7 @@ static int send_request(winhttp_stream *s, size_t len, bool chunked) } } - if (!request_failed || send_request_error == ERROR_WINHTTP_SECURE_FAILURE) { + if (!request_failed || !cert_valid) { git_error_clear(); if ((error = certificate_check(s, cert_valid)) < 0) { if (!git_error_last()) |
