mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
messages: Add missing ntohl on X11 request screen number
BUG: https://red.libssh.org/issues/160 Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
2c7dfb02a8
commit
f37c844bf7
@@ -1469,6 +1469,7 @@ int ssh_message_handle_channel_request(ssh_session session, ssh_channel channel,
|
|||||||
if (strcmp(request, "x11-req") == 0) {
|
if (strcmp(request, "x11-req") == 0) {
|
||||||
ssh_string auth_protocol = NULL;
|
ssh_string auth_protocol = NULL;
|
||||||
ssh_string auth_cookie = NULL;
|
ssh_string auth_cookie = NULL;
|
||||||
|
uint32_t screen_number;
|
||||||
|
|
||||||
buffer_get_u8(packet, &msg->channel_request.x11_single_connection);
|
buffer_get_u8(packet, &msg->channel_request.x11_single_connection);
|
||||||
|
|
||||||
@@ -1496,7 +1497,8 @@ int ssh_message_handle_channel_request(ssh_session session, ssh_channel channel,
|
|||||||
ssh_string_free(auth_protocol);
|
ssh_string_free(auth_protocol);
|
||||||
ssh_string_free(auth_cookie);
|
ssh_string_free(auth_cookie);
|
||||||
|
|
||||||
buffer_get_u32(packet, &msg->channel_request.x11_screen_number);
|
buffer_get_u32(packet, &screen_number);
|
||||||
|
msg->channel_request.x11_screen_number = ntohl(screen_number);
|
||||||
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user