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

Don't allow inheriting session if username doesn't match #399

Closed
wants to merge 2 commits into from

Conversation

snej
Copy link
Contributor

@snej snej commented May 10, 2024

MQTT 5.4.2: ".. the implementation should check that the Client is authorized to use the Client Identifier ... to protect against the case where one Client, accidentally or maliciously, provides a Client Identifier that is already being used by some other Client."

Fixes #398

snej added 2 commits May 10, 2024 14:16
MQTT 5.4.2: ".. the implementation should check that the Client is
authorized to use the Client Identifier ... to protect against the
case where one Client, accidentally or maliciously, provides a Client
Identifier that is already being used by some other Client."
@snej
Copy link
Contributor Author

snej commented May 13, 2024

Ironically the tests failed because they exhibit this bug -- they were using inconsistent usernames between the first and second session. Making the usernames the same fixed the problem.

@snej snej closed this May 15, 2024
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.

Don't allow inheriting session unless username matches
1 participant