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
29d4a150
Commit
29d4a150
authored
Jan 29, 2020
by
Yossi Gottlieb
Committed by
antirez
Feb 04, 2020
Browse files
TLS: Fix missing initialization in redis-cli.
parent
ec0c61da
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
29d4a150
...
...
@@ -49,6 +49,7 @@
#include <hiredis.h>
#ifdef USE_OPENSSL
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <hiredis_ssl.h>
#endif
#include <sds.h>
/* use sds.h from hiredis, so that only one set of sds functions will be present in the binary */
...
...
@@ -7933,6 +7934,14 @@ int main(int argc, char **argv) {
parseEnv
();
#ifdef USE_OPENSSL
if
(
config
.
tls
)
{
ERR_load_crypto_strings
();
SSL_load_error_strings
();
SSL_library_init
();
}
#endif
/* Cluster Manager mode */
if
(
CLUSTER_MANAGER_MODE
())
{
clusterManagerCommandProc
*
proc
=
validateClusterManagerCommand
();
...
...
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