We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7192e26 + 05d89e7 commit 01574d4Copy full SHA for 01574d4
src/streams/openssl.c
@@ -219,6 +219,10 @@ int git_openssl_stream_global_init(void)
219
* to speak TLSv1 to perform the encryption itself.
220
*/
221
git__ssl_ctx = SSL_CTX_new(SSLv23_method());
222
+ if (!git__ssl_ctx) {
223
+ return -1;
224
+ }
225
+
226
SSL_CTX_set_options(git__ssl_ctx, ssl_opts);
227
SSL_CTX_set_mode(git__ssl_ctx, SSL_MODE_AUTO_RETRY);
228
SSL_CTX_set_verify(git__ssl_ctx, SSL_VERIFY_NONE, NULL);
0 commit comments