mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Logging
This commit is contained in:
@@ -120,6 +120,7 @@ guac_client* guac_get_client(int client_fd) {
|
||||
if (!(client->client_plugin_handle)) {
|
||||
syslog(LOG_ERR, "Could not open client plugin for protocol \"%s\": %s\n", protocol, dlerror());
|
||||
guac_send_error(io, "Could not load server-side client plugin.");
|
||||
guac_flush(io);
|
||||
guac_free_instruction_data(&instruction);
|
||||
return NULL;
|
||||
}
|
||||
@@ -132,6 +133,7 @@ guac_client* guac_get_client(int client_fd) {
|
||||
if ((error = dlerror()) != NULL) {
|
||||
syslog(LOG_ERR, "Could not get guac_client_init in plugin: %s\n", error);
|
||||
guac_send_error(io, "Invalid server-side client plugin.");
|
||||
guac_flush(io);
|
||||
guac_free_instruction_data(&instruction);
|
||||
return NULL;
|
||||
}
|
||||
@@ -141,8 +143,8 @@ guac_client* guac_get_client(int client_fd) {
|
||||
argv = instruction.argv;
|
||||
|
||||
if (alias.client_init(client, argc, argv) != 0) {
|
||||
/* NOTE: On error, proxy client will send appropriate error message */
|
||||
guac_free_instruction_data(&instruction);
|
||||
guac_send_error(io, "Error initializing server-side client.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user