mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
channels: Fix NULL check in channel_rcv_data callback
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -533,7 +533,7 @@ SSH_PACKET_CALLBACK(channel_rcv_data){
|
||||
ssh_callbacks_iterate(channel->callbacks,
|
||||
ssh_channel_callbacks,
|
||||
channel_data_function) {
|
||||
if (ssh_buffer_get(buf) == 0) {
|
||||
if (ssh_buffer_get(buf) == NULL) {
|
||||
break;
|
||||
}
|
||||
rest = ssh_callbacks_iterate_exec(channel_data_function,
|
||||
|
||||
Reference in New Issue
Block a user