Skip to content

Conversation

@AlexMartigny
Copy link
Contributor

Per MS-NLMP spec: "Any fields after the MachineID field MUST be ignored on receipt." https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/f221c061-cc40-4471-95da-d2ff71c85c5b

This changes SingleHost from Vec back to [u8; 48], explicitly discarding any trailing bytes (e.g., the 32 extra bytes from Windows 11 Build 26200+) rather than storing them unused.

…storing

Per MS-NLMP spec: "Any fields after the MachineID field MUST be ignored on receipt."
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/f221c061-cc40-4471-95da-d2ff71c85c5b

This changes SingleHost from Vec<u8> back to [u8; 48], explicitly discarding
any trailing bytes (e.g., the 32 extra bytes from Windows 11 Build 26200+)
rather than storing them unused.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mamoreau-devolutions mamoreau-devolutions merged commit 9e9aa87 into master Jan 5, 2026
63 checks passed
@mamoreau-devolutions mamoreau-devolutions deleted the refactor/single-host-discard-trailing-bytes branch January 5, 2026 20:52
@CBenoit
Copy link
Member

CBenoit commented Jan 6, 2026

Hi @TheBestTvarynka
Do you think you can you double check this fix before I release a new version?

@TheBestTvarynka
Copy link
Collaborator

Sure!

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.

5 participants