diff --git a/src/protocols/ssh/ssh_client.c b/src/protocols/ssh/ssh_client.c index ef730b44..cb6a6364 100644 --- a/src/protocols/ssh/ssh_client.c +++ b/src/protocols/ssh/ssh_client.c @@ -474,6 +474,7 @@ void* ssh_client_thread(void* data) { total_read += bytes_read; } +#ifdef ENABLE_SSH_AGENT /* If agent open, handle any agent packets */ if (client_data->auth_agent != NULL) { bytes_read = ssh_auth_agent_read(client_data->auth_agent); @@ -482,6 +483,7 @@ void* ssh_client_thread(void* data) { else if (bytes_read < 0 && bytes_read != LIBSSH2_ERROR_EAGAIN) client_data->auth_agent = NULL; } +#endif /* Wait for more data if reads turn up empty */ if (total_read == 0) {