Bug#228828: ssh: ssh-keyscan sometimes exits when it finds an ftp server
tags 228828 patch
forwarded 228828 http://bugzilla.mindrot.org/show_bug.cgi?id=809
thanks
On Sun, Mar 07, 2004 at 11:20:39AM +0000, Colin Watson wrote:
> On Wed, Jan 21, 2004 at 12:13:19AM -0500, Matt Swift wrote:
> > If you are scanning a list of IP addresses with ssh-keyscan and
> > encounter an FTP server, ssh-keyscan quits and does not scan the
> > remainder of the list. I think it should just continue on to the next
> > host instead.
>
> I have a guess: when the remote end isn't an SSH server, it looks like
> remote_major and remote_minor in congreet() just end up containing
> whatever happens to be on the stack. Could you please try the following
> patch (against 1:3.8p1-1, but that shouldn't matter)?
In fact, I managed to test this myself. I've forwarded your bug and my
patch upstream.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: