From 0b0c2aae93917c4598e8e5b333d4a6908470f1f9 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 4 Jan 2015 19:17:40 -0800 Subject: [PATCH] GUAC-974: Auth key failures should abort as UNAUTHORIZED. --- src/protocols/ssh/ssh_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/protocols/ssh/ssh_client.c b/src/protocols/ssh/ssh_client.c index affce5df..4613530c 100644 --- a/src/protocols/ssh/ssh_client.c +++ b/src/protocols/ssh/ssh_client.c @@ -385,7 +385,9 @@ void* ssh_client_thread(void* data) { /* If still failing, give up */ if (client_data->key == NULL) { - guac_client_log(client, GUAC_LOG_ERROR, "Auth key import failed."); + guac_client_abort(client, + GUAC_PROTOCOL_STATUS_CLIENT_UNAUTHORIZED, + "Auth key import failed."); return NULL; }