Skip to content

Fix f_1677#903

Merged
ejohnstown merged 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:fix_1677
Apr 2, 2026
Merged

Fix f_1677#903
ejohnstown merged 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:fix_1677

Conversation

@yosuke-wolfssl
Copy link
Copy Markdown
Contributor

This PR fixes wolfSSH_AGENT_Relay() so that it evaluates the sz instead of ret in line 1734 properly.
This addresses to f_1677.

@yosuke-wolfssl yosuke-wolfssl self-assigned this Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 08:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes wolfSSH_AGENT_Relay() in src/agent.c to correctly check the return value from agentIoCb() (sz) for WS_CBIO_ERR_GENERAL, instead of incorrectly checking ret. This ensures the agent reconnect/setup retry path is triggered when the agent I/O write callback reports a general error.

Changes:

  • Update the error-condition check in wolfSSH_AGENT_Relay() to compare sz against WS_CBIO_ERR_GENERAL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ejohnstown ejohnstown merged commit a18adff into wolfSSL:master Apr 2, 2026
165 of 168 checks passed
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.

4 participants