mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +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:
committed by
Sahana Prasad
parent
582905affa
commit
d0ffe917fb
@@ -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 "!",
|
||||
|
||||
Reference in New Issue
Block a user