From eca166a22dacb9e55e0d393c84a1d66320940ec7 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Sun, 21 Aug 2011 10:57:01 +0800 Subject: [PATCH] server: fix incorrect flag in license module. --- libfreerdp-core/license.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);