Dave McCaldon wrote:
> Please let me know if there are any problems!
I agree with Alexander, fix up uses of the now-deprecated pubkey
define and this is good for a commit!
> + } else if (session->userauth_pswd_data[0] == SSH_MSG_USERAUTH_FAILURE) {
> + _libssh2_debug(session, LIBSSH2_TRACE_AUTH,
> + "Password authentication failed");
> + LIBSSH2_FREE(session, session->userauth_pswd_data);
> + session->userauth_pswd_data = NULL;
> + session->userauth_pswd_state = libssh2_NB_state_idle;
> + libssh2_error(session,
> + LIBSSH2_ERROR_AUTHENTICATION_FAILED,
> + "Authentication failed (username/password)",
> + 0);
> + return -1;
Somewhat related, but not criticism on your patch Dave. I know that
the above is the same style as the rest of the library and it's fine.
Would anyone veto changes that reduce mindless code duplication such
as above with the use of forward gotos to the end of functions?
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-21