From 635b17d0a177cb73eb606f8c901bbbb7b6e75e48 Mon Sep 17 00:00:00 2001 From: David Fort Date: Wed, 5 Dec 2018 10:50:47 +0100 Subject: [PATCH] license: fix licencing against windows 2003 server The spec says: "For Windows Server 2008, Windows Server 2008 R2, and Windows Server 2012, the EncryptedLicenseInfo variable (part of the Server Upgrade License PDU) sent by the server to the client has the wBlobType parameter set to value BB_ENCRYPTED_DATA_BLOB (0x0009). For Windows Server 2003, the value of wBlobType is not defined." So don't enforce the message type. --- libfreerdp/core/license.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libfreerdp/core/license.c b/libfreerdp/core/license.c index 181b9d2df..cf91a3a50 100644 --- a/libfreerdp/core/license.c +++ b/libfreerdp/core/license.c @@ -1165,8 +1165,7 @@ static BOOL license_read_encrypted_blob(const rdpLicense *license, wStream *s, L Stream_Read_UINT16(s, wBlobType); if (wBlobType != BB_ENCRYPTED_DATA_BLOB) { - WLog_ERR(TAG, "expecting BB_ENCRYPTED_DATA_BLOB blob"); - return FALSE; + WLog_DBG(TAG, "expecting BB_ENCRYPTED_DATA_BLOB blob, probably a windows 2003 server, continuing..."); } Stream_Read_UINT16(s, wBlobLen);