Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pdu): fix preamble_size in LicensingErrorMessage regression #473

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

elmarco
Copy link
Contributor

@elmarco elmarco commented Jun 10, 2024

According to
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/73170ca2-5f82-4a2d-9d1b-b439f3d8dadc

wMsgSize is "the size in bytes of the licensing packet (including the size of the preamble)". It must thus exclude BASIC_SECURITY_HEADER_SIZE.

Fixes mstsc connection to IronRDP server/acceptor.

Fixes 5c42ade ("fix: make license parsing and protocol more resilient (#436)")

According to
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/73170ca2-5f82-4a2d-9d1b-b439f3d8dadc

wMsgSize is "the size in bytes of the licensing packet (including the
size of the preamble)". It must thus exclude BASIC_SECURITY_HEADER_SIZE.

Fixes mstsc connection to IronRDP server/acceptor.

Fixes 5c42ade ("fix: make license parsing and protocol more resilient (Devolutions#436)")
Signed-off-by: Marc-André Lureau <[email protected]>
Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

@CBenoit CBenoit merged commit a659924 into Devolutions:master Jun 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants