Merge pull request #737 from natoscott/master

Fix dead code in sslLogCallback relating to should_log variable.
This commit is contained in:
Michael Grunder 2019-11-25 17:01:12 -08:00 committed by GitHub
commit f2ef5f0c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
ssl.c
View File

@ -82,8 +82,8 @@ redisContextFuncs redisContextSSLFuncs;
* Callback used for debugging * Callback used for debugging
*/ */
static void sslLogCallback(const SSL *ssl, int where, int ret) { static void sslLogCallback(const SSL *ssl, int where, int ret) {
const char *retstr = ""; const char *retstr;
int should_log = 1; int should_log = 0;
/* Ignore low-level SSL stuff */ /* Ignore low-level SSL stuff */
if (where & SSL_CB_ALERT) { if (where & SSL_CB_ALERT) {