channels: Fix NULL check in channel_rcv_data callback

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-06-30 13:52:09 +02:00
parent f425ebb098
commit 88673b2d1f

View File

@@ -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,