Fix dead code in sslLogCallback relating to should_log variable.
Coverity scans found that the should_log logic in sslLogCallback is not working as expected because the variable is not correctly initialised (the conditional code before logging always sets the value to 1, which it already is).
This commit is contained in:
parent
5d0568d9ae
commit
42697bd45a
4
ssl.c
4
ssl.c
|
@ -82,8 +82,8 @@ redisContextFuncs redisContextSSLFuncs;
|
|||
* Callback used for debugging
|
||||
*/
|
||||
static void sslLogCallback(const SSL *ssl, int where, int ret) {
|
||||
const char *retstr = "";
|
||||
int should_log = 1;
|
||||
const char *retstr;
|
||||
int should_log = 0;
|
||||
/* Ignore low-level SSL stuff */
|
||||
|
||||
if (where & SSL_CB_ALERT) {
|
||||
|
|
Loading…
Reference in New Issue