Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ssh_stream_read(): fix possible *bytes_read < 0 branch #3562

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

Merged
merged 1 commit into from
Dec 29, 2015
Merged

ssh_stream_read(): fix possible *bytes_read < 0 branch #3562

merged 1 commit into from
Dec 29, 2015

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Dec 26, 2015

Fix the possibility of returning successfully from ssh_stream_read() with *bytes_read < 0. This would occur if stdout channel read resulted in 0, and stderr channel read failed afterwards.

Fix the possibility of returning successfully from ssh_stream_read()
with *bytes_read < 0. This would occur if stdout channel read resulted
in 0, and stderr channel read failed afterwards.
carlosmn added a commit that referenced this pull request Dec 29, 2015
ssh_stream_read(): fix possible *bytes_read < 0 branch
@carlosmn carlosmn merged commit 700f0af into libgit2:master Dec 29, 2015
@mgorny mgorny deleted the ssh-read-stderr-fail branch December 31, 2015 06:37
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