diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-14 08:55:33 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-14 08:55:33 +0000 |
commit | 22b3122c6c297f7329100543afc7e712b3dc91d5 (patch) | |
tree | 19baf76d5741cf36b5481d06320726b6d60ea422 /libssh/auth1.c | |
parent | 640cf4cc93f92296fc6a8a4f64a7e2be0983f76e (diff) | |
download | libssh-22b3122c6c297f7329100543afc7e712b3dc91d5.tar.gz libssh-22b3122c6c297f7329100543afc7e712b3dc91d5.tar.xz libssh-22b3122c6c297f7329100543afc7e712b3dc91d5.zip |
Use consistent return values for packet_translate().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@456 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r-- | libssh/auth1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c index bea5a950..4f2b54c3 100644 --- a/libssh/auth1.c +++ b/libssh/auth1.c @@ -32,11 +32,11 @@ #ifdef HAVE_SSH1 static int wait_auth1_status(SSH_SESSION *session) { /* wait for a packet */ - if (packet_read(session)) { + if (packet_read(session) != SSH_OK) { return SSH_AUTH_ERROR; } - if(packet_translate(session)) { + if(packet_translate(session) != SSH_OK) { return SSH_AUTH_ERROR; } |