GUACAMOLE-208: Report network failures to connect with UPSTREAM_NOT_FOUND.

This commit is contained in:
Michael Jumper 2017-02-15 21:37:59 -08:00
parent a78d52e615
commit 4f4643dd2f
3 changed files with 5 additions and 3 deletions

View File

@ -483,7 +483,7 @@ guac_common_ssh_session* guac_common_ssh_create_session(guac_client* client,
/* If unable to connect to anything, fail */
if (current_address == NULL) {
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR,
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_NOT_FOUND,
"Unable to connect to any addresses.");
close(fd);
return NULL;

View File

@ -352,7 +352,8 @@ static telnet_t* __guac_telnet_create_session(guac_client* client) {
/* If unable to connect to anything, fail */
if (current_address == NULL) {
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR, "Unable to connect to any addresses.");
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_NOT_FOUND,
"Unable to connect to any addresses.");
return NULL;
}

View File

@ -202,7 +202,8 @@ void* guac_vnc_client_thread(void* data) {
/* If the final connect attempt fails, return error */
if (!rfb_client) {
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR, "Unable to connect to VNC server.");
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_NOT_FOUND,
"Unable to connect to VNC server.");
return NULL;
}