summaryrefslogtreecommitdiffstats
path: root/libssh/client.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-14 09:37:22 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-14 09:37:22 +0000
commit4174577db3e4c6ae3dce7bf78f0f96462463cf85 (patch)
treeee9e23583e1d91c65dcec7ab7a94c644d1a88c5a /libssh/client.c
parent6ec84bfc2eb9922e83876a4352859dfcc4850efa (diff)
downloadlibssh-4174577db3e4c6ae3dce7bf78f0f96462463cf85.tar.gz
libssh-4174577db3e4c6ae3dce7bf78f0f96462463cf85.tar.xz
libssh-4174577db3e4c6ae3dce7bf78f0f96462463cf85.zip
Use consistend return values for packet_wait() functions.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@462 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/client.c')
-rw-r--r--libssh/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/client.c b/libssh/client.c
index d91c55cb..77e80a4a 100644
--- a/libssh/client.c
+++ b/libssh/client.c
@@ -268,7 +268,7 @@ int ssh_service_request(SSH_SESSION *session, const char *service) {
packet_send(session);
ssh_log(session, SSH_LOG_PACKET,
"Sent SSH_MSG_SERVICE_REQUEST (service %s)\n", service);
- if(packet_wait(session,SSH2_MSG_SERVICE_ACCEPT,1)){
+ if (packet_wait(session,SSH2_MSG_SERVICE_ACCEPT,1) != SSH_OK) {
ssh_set_error(session,SSH_FATAL,"did not receive SERVICE_ACCEPT");
leave_function();
return -1;