Skip to content

Commit

Permalink
ssh_userauth_publickey_auto could return error
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Mar 3, 2018
1 parent 5bcba24 commit 0677142
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/libssh_ruby/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ static VALUE m_userauth_publickey_auto(VALUE self) {
args.session = holder->session;
rb_thread_call_without_gvl(nogvl_userauth_publickey_auto, &args, RUBY_UBF_IO,
NULL);
RAISE_IF_ERROR(args.rc);
return INT2FIX(args.rc);
}

Expand Down

0 comments on commit 0677142

Please sign in to comment.