diff --git a/libfreerdp/core/listener.c b/libfreerdp/core/listener.c index 468c6aef3..d9bed6851 100644 --- a/libfreerdp/core/listener.c +++ b/libfreerdp/core/listener.c @@ -352,6 +352,7 @@ static BOOL freerdp_listener_check_fds(freerdp_listener* instance) if (peer_sockfd == -1) { + char buffer[8192] = { 0 }; #ifdef _WIN32 int wsa_error = WSAGetLastError(); @@ -365,7 +366,7 @@ static BOOL freerdp_listener_check_fds(freerdp_listener* instance) continue; #endif - WLog_DBG(TAG, "accept"); + WLog_WARN(TAG, "accept failed with %s", winpr_strerror(errno, buffer, sizeof(buffer))); freerdp_peer_free(client); return FALSE; }