Hi,
I've found the problem causing the failed assertion, as reported by "Gabor
Z. Papp" <[EMAIL PROTECTED]>, though I couldn't find the proper solution.
ssh_channel has a field named sources counting the number of opened fd's
to be forwarded through the channel.
This counter is incremented if a read_data object gets a reference to a
given channel, and decremented by a close_callback: channel_close_callback
(used on fds whose destination is a channel).
So read_data (incrementing the counter) is used on the stdout & stderr,
and channel_close_callback (decrementing the counter) is used on stdin.
The assertion fails, when the stdin is closed, and still some data comes
from the channel. Niels, you could solve this problem in a minute, but I'll
try to find a good solution.
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
url: http://www.balabit.hu/pgpkey.txt