[Libssh] latest SVN version breaks sshv1

Aris Adamantiadis aris at 0xbadc0de.be
Wed Apr 8 09:14:47 CEST 2009


Norbert Kiesel a écrit :
> Hi,
>
> just updated my sandbox with version 423 and this breaks sshv1.  I
> _think_ I had something like version 377 or so (not 100% sure, any way
> to find out?) and that works (I still have th2 so.2 library and my test
> program linked against that works).
>
> First, sshv1 did not compile.  I fixed this (see below for patch
> v1.diff), and also moved the ssh_option_free in ssh_cleanup further down
> (so that the log_function in options stays valid) which fixes as segv
> with debug level 9.
>
> By comparing the logs (attached failure_log and working_log), I traced
> the difference down to a call to grow_window in channels.c (added in
> rev#415).  Seems sshv1 can't deal with that.  It enters that function
> because local_window was never initialized for sshv1.  I made it work by
> setting chan->local_window to WINDOWSIZE (see below for patch
> channels1.diff). Is this the right fix?
>
> </nk>
>
>   
Hi Norbert,

Thanks for your precious feedback. I'll verify if the Windowing works
the same way under SSH1 and SSH2. Behind near a release, we can't miss
important things like this.

Regards,

Aris



More information about the Libssh mailing list