Skip to content

Commit 60d8d6e

Browse files
committed
fixup! add support for disabling SSL revocation checks in cURL
This maintainer thought that it was discussed that you cannot `strcmp()` blindly without checking for NULL first, but subsequently forgot to check that the fix had made it into the final version of the PR... :-( The problem is that this crashes any fetch/push/clone/ls-remote operation *unless* http.sslBackend is specified explicitly. This probably fixes the root cause behind #1474. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent a7e57c2 commit 60d8d6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ static CURL *get_curl_handle(void)
753753
}
754754
#endif
755755

756-
if (!strcmp("schannel", http_ssl_backend) && !http_schannel_check_revoke) {
756+
if (http_ssl_backend && !strcmp("schannel", http_ssl_backend) &&
757+
!http_schannel_check_revoke) {
757758
#if LIBCURL_VERSION_NUM >= 0x074400
758759
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
759760
#else

0 commit comments

Comments
 (0)