Skip to content

transport: drop impossible if() branch - #2056

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:etm-conflict-ifs
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:etm-conflict-ifs

Conversation

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vszakats vszakats closed this in fef6c3c Jun 15, 2026
@vszakats
vszakats deleted the etm-conflict-ifs branch June 15, 2026 18:22
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