Send a correct reason string when disconnecting due to unsupported security type
parent
eaa78a958e
commit
52f5510467
|
@ -239,7 +239,7 @@ static int handle_invalid_security_type(struct nvnc_client* client)
|
||||||
struct rfb_error_reason* reason =
|
struct rfb_error_reason* reason =
|
||||||
(struct rfb_error_reason*)(buffer + sizeof(*result));
|
(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);
|
*result = htonl(RFB_SECURITY_HANDSHAKE_FAILED);
|
||||||
reason->length = htonl(strlen(reason_string));
|
reason->length = htonl(strlen(reason_string));
|
||||||
|
|
Loading…
Reference in New Issue