Skip to content
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

Correct usage of Net::SSH2->error() #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toreanderson
Copy link

As clarified in rkitover/net-ssh2@aff82eb, Net::SSH2->error() can return
true even though the previous Net::SSH2 method call succeeded.
Net::SSH2->error() is thus only meaningful immediately following a
failure indicated some other way.

This change fixes public key authentication when Net::Netconf is being
used in combinations between Net::SSH2 versions from 0.55 to 0.57_02
inclusive (see rkitover/net-ssh2#28).

As clarified in rkitover/net-ssh2@aff82eb, Net::SSH2->error() can return
true even though the previous Net::SSH2 method call succeeded.
Net::SSH2->error() is thus only meaningful immediately following a
failure indicated some other way.

This change fixes public key authentication when Net::Netconf is being
used in combinations between Net::SSH2 versions from 0.55 to 0.57_02
inclusive (see rkitover/net-ssh2#28).
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.

1 participant