From 65d1d0e185f12b08f7db34bf71d0ae042f296853 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Mon, 2 Oct 2023 23:05:19 +0000 Subject: [PATCH] server: Use uint32_t for security result failure path --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 0387b49..ca34f64 100644 --- a/src/server.c +++ b/src/server.c @@ -267,7 +267,7 @@ static int security_handshake_failed(struct nvnc_client* client, client->state = VNC_CLIENT_STATE_ERROR; - uint8_t* result = (uint8_t*)buffer; + uint32_t* result = (uint32_t*)buffer; struct rfb_error_reason* reason = (struct rfb_error_reason*)(buffer + sizeof(*result));