[core,transport] properly log failure reason retries exceeded

This commit is contained in:
Armin Novak 2023-05-22 21:07:51 +02:00 committed by akallabeth
parent da38ca3254
commit 7832ba2361

View File

@ -676,6 +676,8 @@ static void transport_bio_error_log(rdpTransport* transport, LPCSTR biofunc, BIO
if (ERR_peek_error() == 0)
{
const char* fmt = "%s returned a system error %d: %s";
if (saveerrno == 0)
fmt = "%s retries exceeded";
WLog_PrintMessage(transport->log, WLOG_MESSAGE_TEXT, level, line, file, func, fmt, biofunc,
saveerrno, strerror(saveerrno));
return;