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

WebSockets: move assert out of the loop in kws_read_frame() #186

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

andywolk
Copy link
Contributor

@andywolk andywolk commented Jan 9, 2024

Since kws->rplen = kws->plen - need; then kws->plen is the same as need + kws->rplen we can move the assert out of the loop.

@andywolk andywolk requested a review from crienzo January 9, 2024 22:05
@andywolk andywolk merged commit 4f86f0b into master Jan 9, 2024
4 checks passed
@andywolk andywolk deleted the assert branch January 9, 2024 22:12
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.

2 participants