GUAC-1389: Release candidate addresses of no connection can be established.

This commit is contained in:
Michael Jumper 2016-03-02 10:59:03 -08:00
parent e42566816c
commit c9346014df

View File

@ -449,6 +449,7 @@ guac_common_ssh_session* guac_common_ssh_create_session(guac_client* client,
if (current_address == NULL) { if (current_address == NULL) {
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR, guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR,
"Unable to connect to any addresses."); "Unable to connect to any addresses.");
freeaddrinfo(addresses);
close(fd); close(fd);
return NULL; return NULL;
} }