channels: Fix possible infinite loop in channel_read(). (cherry picked from commit 66188f1af84852b9d9fc09acf26454c4cfacefef)
channels: Fix possible infinite loop in channel_read().
(cherry picked from commit 66188f1af84852b9d9fc09acf26454c4cfacefef)

mwgoldsmith/libssh,mwgoldsmith/libssh,mwgoldsmith/libssh,mwgoldsmith/ssh,mwgoldsmith/ssh,mwgoldsmith/ssh,mwgoldsmith/ssh,mwgoldsmith/libssh