summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-09-08 10:11:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-09-08 10:11:09 +0300
commit410dcf305260b51294a39a6f0825a2a548030dba (patch)
tree8d532ccc37208990a4e26fdedbf04bb2158befe8 /src/mir_app
parent641bc47453a58cb4a5e119753c5b358dfa295684 (diff)
extended error diagnostics for #2935
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/netlib_ssl.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mir_app/src/netlib_ssl.cpp b/src/mir_app/src/netlib_ssl.cpp
index 1f8ffe5f2c..f44b2fee28 100644
--- a/src/mir_app/src/netlib_ssl.cpp
+++ b/src/mir_app/src/netlib_ssl.cpp
@@ -291,9 +291,12 @@ MIR_APP_DLL(int) Netlib_SslRead(HSSL ssl, char *buf, int num, int peek)
return 0;
}
- Netlib_Logf(nullptr, "SSL failure recieving data (%d, %d, %d)", err, err2, WSAGetLastError());
- ssl->state = sockError;
- return SOCKET_ERROR;
+ int err3 = ERR_get_error();
+ if (err3) {
+ Netlib_Logf(nullptr, "SSL failure recieving data (%d, %d, %d, %d)", err, err2, err3, WSAGetLastError());
+ ssl->state = sockError;
+ return SOCKET_ERROR;
+ }
}
return err;