summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
Diffstat (limited to 'vio')
-rw-r--r--vio/viossl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index c7449c7feb2..61e4d9406a7 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -75,9 +75,11 @@ report_errors(SSL* ssl)
if (ssl)
{
+#ifndef DBUG_OFF
int error= SSL_get_error(ssl, l);
DBUG_PRINT("error", ("error: %s (%d)",
ERR_error_string(error, buf), error));
+#endif
}
DBUG_PRINT("info", ("socket_errno: %d", socket_errno));