Skip to content

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

Open
toreanderson wants to merge 1 commit intoJuniper:masterfrom
toreanderson:master
Open

Correct usage of Net::SSH2->error()#25
toreanderson wants to merge 1 commit intoJuniper:masterfrom
toreanderson:master

Conversation

@toreanderson
Copy link
Copy Markdown

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