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/session.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/session.c')
-rw-r--r-- | libssh/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/session.c b/libssh/session.c index 9288542..1a69c36 100644 --- a/libssh/session.c +++ b/libssh/session.c @@ -215,7 +215,8 @@ int ssh_handle_packets(SSH_SESSION *session){ return r; // error or no data available } /* if an exception happened, it will be trapped by packet_read() */ - if(packet_read(session)||packet_translate(session)){ + if ((packet_read(session) != SSH_OK) || + (packet_translate(session) != SSH_OK)) { leave_function(); return -1; } |