diff options
author | wildart <wildart@gmail.com> | 2016-07-06 20:06:25 +0300 |
---|---|---|
committer | wildart <wildart@gmail.com> | 2016-07-06 20:06:25 +0300 |
commit | bdec62dce1c17465b7330100ea2f71e63fc411dd (patch) | |
tree | 055780bdf8a52b963c50b81b5ba99b8913fe8abe /src/transports/http.c | |
parent | d8243465be6ae4c3d0482ec262da58276f3a4e58 (diff) |
remove conditions that prevent use of custom TLS stream
Diffstat (limited to 'src/transports/http.c')
-rw-r--r-- | src/transports/http.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transports/http.c b/src/transports/http.c index 4fbbfbbad..30520a05d 100644 --- a/src/transports/http.c +++ b/src/transports/http.c @@ -620,7 +620,6 @@ static int http_connect(http_subtransport *t) error = git_stream_connect(t->io); -#if defined(GIT_OPENSSL) || defined(GIT_SECURE_TRANSPORT) || defined(GIT_CURL) if ((!error || error == GIT_ECERTIFICATE) && t->owner->certificate_check_cb != NULL && git_stream_is_encrypted(t->io)) { git_cert *cert; @@ -640,7 +639,7 @@ static int http_connect(http_subtransport *t) return error; } } -#endif + if (error < 0) return error; |