diff options
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 2 |
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; |