mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 11:10:28 +09:00
channels: Do not be so picky about the extended data type
assume stderr by default and log only warning in case the data type is non-standard. 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
d0ffe917fb
commit
00bafe0a82
@@ -590,10 +590,9 @@ SSH_PACKET_CALLBACK(channel_rcv_data)
|
|||||||
|
|
||||||
return SSH_PACKET_USED;
|
return SSH_PACKET_USED;
|
||||||
}
|
}
|
||||||
data_type_code = ntohl(data_type_code);
|
|
||||||
if (data_type_code == SSH2_EXTENDED_DATA_STDERR) {
|
|
||||||
is_stderr = 1;
|
is_stderr = 1;
|
||||||
} else {
|
data_type_code = ntohl(data_type_code);
|
||||||
|
if (data_type_code != SSH2_EXTENDED_DATA_STDERR) {
|
||||||
SSH_LOG(SSH_LOG_PACKET, "Invalid data type code %" PRIu32 "!",
|
SSH_LOG(SSH_LOG_PACKET, "Invalid data type code %" PRIu32 "!",
|
||||||
data_type_code);
|
data_type_code);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user