aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth1.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-14 08:55:33 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-14 08:55:33 +0000
commit22b3122c6c297f7329100543afc7e712b3dc91d5 (patch)
tree19baf76d5741cf36b5481d06320726b6d60ea422 /libssh/auth1.c
parent640cf4cc93f92296fc6a8a4f64a7e2be0983f76e (diff)
downloadlibssh-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.c4
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;
}