From 52f551046780a01a627678e3ba709640d5ec6698 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 28 Dec 2019 20:50:44 +0000 Subject: [PATCH] Send a correct reason string when disconnecting due to unsupported security type --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 1a903d5..a414825 100644 --- a/src/server.c +++ b/src/server.c @@ -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));