Fixed endless loop when RDP Server sends SERVER_DENIED_CONNECTION
authortditsch <thomas.ditsch@oneclick-cloud.com>
Mon, 18 Sep 2017 15:29:16 +0000 (17:29 +0200)
committertditsch <thomas.ditsch@oneclick-cloud.com>
Mon, 18 Sep 2017 15:29:16 +0000 (17:29 +0200)
libfreerdp/core/transport.c

index cb97cf3..bd8d853 100644 (file)
@@ -1053,6 +1053,10 @@ int transport_check_fds(rdpTransport* transport)
                transport->haveMoreBytesToRead = TRUE;
        }
 
+  if (freerdp_shall_disconnect(transport->context->instance)) {
+      return -1;
+  }
+
        return 0;
 }