diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2012-10-22 18:01:39 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-10-22 18:06:09 +0200 |
commit | 26579b2231ff8482b026247823860e2e94c161ce (patch) | |
tree | c39d0a9798441234d26fae878b22c94fc61b86bd | |
parent | 04f1d950b9dc903dc9ef9808240d22e08c369bd3 (diff) | |
download | libssh-26579b2231ff8482b026247823860e2e94c161ce.tar.gz libssh-26579b2231ff8482b026247823860e2e94c161ce.tar.xz libssh-26579b2231ff8482b026247823860e2e94c161ce.zip |
auth1: Reset error state to no error.
This fixes bug #89.
-rw-r--r-- | src/auth1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auth1.c b/src/auth1.c index 8b96f8ca..9712c76a 100644 --- a/src/auth1.c +++ b/src/auth1.c @@ -108,6 +108,7 @@ static int send_username(ssh_session session, const char *username) { if(wait_auth1_status(session) == SSH_AUTH_SUCCESS){ session->auth_service_state=SSH_AUTH_SERVICE_USER_SENT; session->auth_state=SSH_AUTH_STATE_SUCCESS; + ssh_set_error(session, SSH_NO_ERROR, "Authentication successful"); return SSH_AUTH_SUCCESS; } else { session->auth_service_state=SSH_AUTH_SERVICE_USER_SENT; |