1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

channels: Fix reading stderr from channels

broken in 4b8db203b0

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
Reviewed-by: Norbert Pocs <npocs@redhat.com>
This commit is contained in:
Jakub Jelen
2023-07-13 12:05:32 +02:00
committed by Sahana Prasad
parent 582905affa
commit d0ffe917fb

View File

@@ -590,7 +590,8 @@ SSH_PACKET_CALLBACK(channel_rcv_data)
return SSH_PACKET_USED;
}
if (data_type_code == 1) {
data_type_code = ntohl(data_type_code);
if (data_type_code == SSH2_EXTENDED_DATA_STDERR) {
is_stderr = 1;
} else {
SSH_LOG(SSH_LOG_PACKET, "Invalid data type code %" PRIu32 "!",