aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/IO/tls.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/IO/tls.c b/src/IO/tls.c
index bab36644..2be2ebc0 100644
--- a/src/IO/tls.c
+++ b/src/IO/tls.c
@@ -185,8 +185,11 @@ static int Tls_conn_new(int fd, const DilloUrl *url, SSL *ssl)
static void Tls_info_cb(const SSL *ssl, int where, int ret)
{
if (where & SSL_CB_ALERT) {
- MSG("TLS ALERT on %s: %s\n", (where & SSL_CB_READ) ? "read" : "write",
- SSL_alert_desc_string_long(ret));
+ const char *str = SSL_alert_desc_string_long(ret);
+
+ if (strcmp(str, "close notify"))
+ MSG("TLS ALERT on %s: %s\n", (where & SSL_CB_READ) ? "read" : "write",
+ str);
}
}