mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
messages: Fix two ssh_buffer_unpack().
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
This commit is contained in:
@@ -641,11 +641,11 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_request){
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
msg->type = SSH_REQUEST_AUTH;
|
msg->type = SSH_REQUEST_AUTH;
|
||||||
rc = ssh_buffer_unpack(packet, "ss",
|
rc = ssh_buffer_unpack(packet,
|
||||||
|
"sss",
|
||||||
&msg->auth_request.username,
|
&msg->auth_request.username,
|
||||||
&service,
|
&service,
|
||||||
&method
|
&method);
|
||||||
);
|
|
||||||
|
|
||||||
if (rc != SSH_OK) {
|
if (rc != SSH_OK) {
|
||||||
goto error;
|
goto error;
|
||||||
@@ -1002,7 +1002,8 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(type_c,"direct-tcpip") == 0) {
|
if (strcmp(type_c,"direct-tcpip") == 0) {
|
||||||
rc = ssh_buffer_unpack(packet, "sds",
|
rc = ssh_buffer_unpack(packet,
|
||||||
|
"sdsd",
|
||||||
&msg->channel_request_open.destination,
|
&msg->channel_request_open.destination,
|
||||||
&destination_port,
|
&destination_port,
|
||||||
&msg->channel_request_open.originator,
|
&msg->channel_request_open.originator,
|
||||||
|
|||||||
Reference in New Issue
Block a user