Repository navigation
Conversation
Spotted by GitHub Code Quality Follow-up to 0048f30 libssh2#987 Refs: https://github.com/libssh2/libssh2/pull/655/files#diff-230448d52506d4e318b43c34773bd5624e3a6883aad330f3b1c20d420214e4adR569-R579 libssh2@63805b9#diff-230448d52506d4e318b43c34773bd5624e3a6883aad330f3b1c20d420214e4adR551-R560
There was a problem hiding this comment.
Pull request overview
Removes a dead if(etm) branch inside ssh2_transport_read() that is provably unreachable because it sits under an enclosing if(!etm && blocksize > 5) condition. This is a small transport-layer cleanup following the earlier ETM (encrypt-then-mac) work.
Changes:
- Drop an impossible
if(etm)block that could never execute due to surrounding logic. - Simplify the packet-copy write-pointer advancement path for the non-ETM case.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spotted by GitHub Code Quality
Follow-up to 0048f30 #987
Refs:
https://github.com/libssh2/libssh2/pull/655/files#diff-230448d52506d4e318b43c34773bd5624e3a6883aad330f3b1c20d420214e4adR569-R579 63805b9#diff-230448d52506d4e318b43c34773bd5624e3a6883aad330f3b1c20d420214e4adR551-R560