Skip to content

Check some ignored return values in SFTP#964

Open
ejohnstown wants to merge 2 commits intowolfSSL:masterfrom
ejohnstown:sftp-ret
Open

Check some ignored return values in SFTP#964
ejohnstown wants to merge 2 commits intowolfSSL:masterfrom
ejohnstown:sftp-ret

Conversation

@ejohnstown
Copy link
Copy Markdown
Contributor

@ejohnstown ejohnstown commented May 6, 2026

Check return values from ParseAttributes in RecvOpen and from DoStatus in DoName.

Issue: CID 645982, CID 572873

Set ret = WS_BAD_FILE_E and jump to cleanup on parse failure
instead of ignoring the return value.

Issue: CID 645982
padelsbach
padelsbach previously approved these changes May 6, 2026
Capture the return value, clear state unconditionally, and report
parse failure or non-OK server status via ssh->error instead of
discarding the result.

Issue: CID 572873
@ejohnstown ejohnstown changed the title sftp: check ParseAttributes return in RecvOpen Check some ignored return values in SFTP May 6, 2026
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.

3 participants