]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: If verbose_ssl=yes, make sure all SSL errors are logged.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 28 Feb 2016 17:57:10 +0000 (19:57 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 28 Feb 2016 17:57:10 +0000 (19:57 +0200)
They should already be logged in the client's disconnection line, but log
them also with debug level just to make sure no errors are lost or
overwritten.

src/login-common/ssl-proxy-openssl.c

index e8db116af83745f9bc1d08f9945fe4f11448032e..8bd27afc66256e7506b448f8c432286295c8e781 100644 (file)
@@ -433,6 +433,8 @@ static void ssl_handle_error(struct ssl_proxy *proxy, int ret,
        }
 
        if (errstr != NULL) {
+               if (proxy->ssl_set->verbose_ssl)
+                       i_debug("SSL error: %s", errstr);
                proxy->last_error = i_strdup(errstr);
                ssl_proxy_destroy_failed(proxy);
        }