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
hiredis
Commits
904bf7fe
Commit
904bf7fe
authored
May 30, 2020
by
michael-grunder
Browse files
Tiny OOM fix
parent
ffd6eaeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ssl.c
View file @
904bf7fe
...
@@ -215,6 +215,8 @@ redisSSLContext *redisCreateSSLContext(const char *cacert_filename, const char *
...
@@ -215,6 +215,8 @@ redisSSLContext *redisCreateSSLContext(const char *cacert_filename, const char *
const
char
*
server_name
,
redisSSLContextError
*
error
)
const
char
*
server_name
,
redisSSLContextError
*
error
)
{
{
redisSSLContext
*
ctx
=
hi_calloc
(
1
,
sizeof
(
redisSSLContext
));
redisSSLContext
*
ctx
=
hi_calloc
(
1
,
sizeof
(
redisSSLContext
));
if
(
ctx
==
NULL
)
goto
error
;
ctx
->
ssl_ctx
=
SSL_CTX_new
(
SSLv23_client_method
());
ctx
->
ssl_ctx
=
SSL_CTX_new
(
SSLv23_client_method
());
if
(
!
ctx
->
ssl_ctx
)
{
if
(
!
ctx
->
ssl_ctx
)
{
...
...
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