server: Use uint32_t for security result failure path

pull/96/head
Andri Yngvason 2023-10-02 23:05:19 +00:00
parent d2c8ab0b6c
commit 65d1d0e185
1 changed files with 1 additions and 1 deletions

View File

@ -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));