GUACAMOLE-514: VNC client should abort on credential error.

This commit is contained in:
Nick Couchman 2019-08-09 13:08:36 -04:00
parent f21621e677
commit 61d12f1668

View File

@ -41,9 +41,12 @@ rfbCredential* guac_vnc_get_credentials(rfbClient* client, int credentialType) {
creds->userCredential.password = settings->password;
return creds;
}
guac_client_log(gc, GUAC_LOG_ERROR,
guac_client_abort(gc, GUAC_PROTOCOL_STATUS_SERVER_ERROR,
"Unsupported credential type requested.");
guac_client_log(gc, GUAC_LOG_DEBUG,
"Unable to provided requested credential %d.",
credentialType);
return NULL;
}