Permalink
Browse files

Only report SSL error when return value indicates so.

  • Loading branch information...
Cizzle committed Nov 21, 2017
1 parent 23931f1 commit 9d84b3b29562ce0edb8b57b7eac5a84f7d4f4a61
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tls.c
View
@@ -645,7 +645,7 @@ void ssl_info(SSL *ssl, int where, int ret)
(where & SSL_CB_READ) ? "read" : "write",
SSL_alert_type_string_long(ret),
SSL_alert_desc_string_long(ret));
} else if (where & SSL_CB_EXIT) {
} else if (ret <= 0 && where & SSL_CB_EXIT) {
putlog(data->loglevel, "*", "TLS: failed in: %s.",
SSL_state_string_long(ssl));
} else {

0 comments on commit 9d84b3b

Please sign in to comment.