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 incorrect expected connection request packet length in error message #127

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

dbechrd
Copy link
Contributor

@dbechrd dbechrd commented Sep 8, 2024

Connection tokens use big nonces, which are 24 bytes. I'm not sure where the hard-coded "8" came from. Maybe stale code, or copy/paste error. The expected length used in the error message should include NETCODE_CONNECT_TOKEN_NONCE_BYTES to match the if statement.

@dbechrd
Copy link
Contributor Author

dbechrd commented Sep 9, 2024

@SirLynix for review, since you introduced big nonces for connect tokens.

@SirLynix
Copy link
Contributor

SirLynix commented Sep 9, 2024

Yes indeed it looks like I forgot to change this line as well, the nonce was 8bytes before my change

@gafferongames gafferongames merged commit dcd0334 into mas-bandwidth:main Sep 9, 2024
0 of 6 checks passed
@dbechrd dbechrd deleted the patch-3 branch September 19, 2024 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants