Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
370d3801
Unverified
Commit
370d3801
authored
Sep 01, 2023
by
icy17
Committed by
GitHub
Aug 31, 2023
Browse files
Fix potential crash on failed OpenSSL init (#12447)
parent
b26e8e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tls.c
View file @
370d3801
...
@@ -211,6 +211,7 @@ static SSL_CTX *createSSLContext(redisTLSContextConfig *ctx_config, int protocol
...
@@ -211,6 +211,7 @@ static SSL_CTX *createSSLContext(redisTLSContextConfig *ctx_config, int protocol
SSL_CTX
*
ctx
=
NULL
;
SSL_CTX
*
ctx
=
NULL
;
ctx
=
SSL_CTX_new
(
SSLv23_method
());
ctx
=
SSL_CTX_new
(
SSLv23_method
());
if
(
!
ctx
)
goto
error
;
SSL_CTX_set_options
(
ctx
,
SSL_OP_NO_SSLv2
|
SSL_OP_NO_SSLv3
);
SSL_CTX_set_options
(
ctx
,
SSL_OP_NO_SSLv2
|
SSL_OP_NO_SSLv3
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment