diff --git a/libfreerdp-core/license.c b/libfreerdp-core/license.c index 51fb23785..8d6d71466 100644 --- a/libfreerdp-core/license.c +++ b/libfreerdp-core/license.c @@ -159,7 +159,11 @@ void license_send(rdpLicense* license, STREAM* s, uint8 type) sec_flags = SEC_LICENSE_PKT; wMsgSize = length - LICENSE_PACKET_HEADER_LENGTH + 4; - flags = EXTENDED_ERROR_MSG_SUPPORTED | PREAMBLE_VERSION_3_0; + /** + * Using EXTENDED_ERROR_MSG_SUPPORTED here would cause mstsc to crash when + * running in server mode! This flag seems to be incorrectly documented. + */ + flags = PREAMBLE_VERSION_3_0; rdp_write_header(license->rdp, s, length, MCS_GLOBAL_CHANNEL_ID); rdp_write_security_header(s, sec_flags);