1
1

Simply leave the function, this should prevent a segfault.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@777 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
Andreas Schneider 2009-06-10 16:05:39 +00:00
родитель d14a492019
Коммит 3873489688

Просмотреть файл

@ -905,7 +905,8 @@ int channel_write(CHANNEL *channel, const void *data, u32 len) {
while(channel->remote_window == 0) { while(channel->remote_window == 0) {
/* parse every incoming packet */ /* parse every incoming packet */
if (packet_wait(channel->session, 0, 0) == SSH_ERROR) { if (packet_wait(channel->session, 0, 0) == SSH_ERROR) {
goto error; leave_function();
return SSH_ERROR;
} }
} }
effectivelen = len > channel->remote_window ? channel->remote_window : len; effectivelen = len > channel->remote_window ? channel->remote_window : len;