]> arthur.barton.de Git - ngircd-alex.git/commitdiff
TLS/SSL: remove useless error message when ssl connection is closed
authorFlorian Westphal <fw@strlen.de>
Thu, 5 Feb 2009 22:42:56 +0000 (23:42 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 5 Feb 2009 22:47:28 +0000 (23:47 +0100)
When using OpenSSL, the following annoying "error" message was logged whenever
an encrypted connection was shut down in a orderly fashion:
TLS/SSL Connection shutdown: ConnSSL_Read: Unable to determine error

of course, this isn't an error at all.

src/ngircd/conn-ssl.c

index 1b4da3ce047695a99456f58533a6335631940554..4ef8f661b2d4fac2640eed10f0fdf8f7316335db 100644 (file)
@@ -484,8 +484,8 @@ ConnSSL_HandleError( CONNECTION *c, const int code, const char *fname )
                Conn_OPTION_ADD(c, CONN_SSL_WANT_WRITE); /* fall through */
        case SSL_ERROR_NONE:
                return 0;       /* try again later */
-       case SSL_ERROR_ZERO_RETURN:     /* TLS/SSL Connection was shut down */
-               LogOpenSSLError("TLS/SSL Connection shutdown", fname);
+       case SSL_ERROR_ZERO_RETURN:
+               LogDebug("TLS/SSL connection shut down normally");
                break;
        /*
        SSL_ERROR_WANT_CONNECT, SSL_ERROR_WANT_ACCEPT, SSL_ERROR_WANT_X509_LOOKUP