Send a correct reason string when disconnecting due to unsupported security type

tight-png
Andri Yngvason 2019-12-28 20:50:44 +00:00
parent eaa78a958e
commit 52f5510467
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ static int handle_invalid_security_type(struct nvnc_client* client)
struct rfb_error_reason* reason =
(struct rfb_error_reason*)(buffer + sizeof(*result));
static const char reason_string[] = "Unsupported version\n";
static const char reason_string[] = "Unsupported security type\n";
*result = htonl(RFB_SECURITY_HANDSHAKE_FAILED);
reason->length = htonl(strlen(reason_string));