From d0644c5e956bed6f6db42f09399db0a5d889d256 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Wed, 23 Aug 2017 09:23:51 +0300 Subject: [PATCH] tls/openssl: print errno on unrecoverable error --- src/tls_openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tls_openssl.c b/src/tls_openssl.c index 3578839..abc8123 100644 --- a/src/tls_openssl.c +++ b/src/tls_openssl.c @@ -278,6 +278,7 @@ static void _tls_sock_wait(tls_t *tls, int error) static void _tls_set_error(tls_t *tls, int error) { if (error != 0 && !tls_is_recoverable(error)) { + xmpp_debug(tls->ctx, "tls", "errno=%d", errno); _tls_log_error(tls->ctx); } tls->lasterror = error;