[Bug 1213] ssh-keyscan exits in mid-way

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Mar 2 19:23:42 EST 2011


https://bugzilla.mindrot.org/show_bug.cgi?id=1213

--- Comment #20 from Daniel Richard G. <skunk at iSKUNK.ORG> 2011-03-02 19:23:42 EST ---
(In reply to comment #19)
> 
> Yep, I missed something.  The sockets associated with ALL connections
> processed by the `keygrab_ssh2()' function are closed twice.  I missed
> the close in the `packet.c:packet_close()' function that's called at
> the bottom of the `keygrab_ssh2()' function.  I had assumed (bad bad
> word) that the only close was in the `confree()' function.  Work/not
> work is up to the gods and the relative connection timings I think.

I tried the new patch, and no errors. I'll give it a few more runs to
see if anything breaks again.

> The format of this patch is the same as before.  If you are using the
> current GNU `patch', you should be able to `patch [-p0] < patch' in the
> "openssh-5.8p1" parent directory.  If your in the "openssh-5.8p1"
> directory itself, you should be able to `patch -p1 <patch'.

Oh, I know about -p0 vs. -p1 and such. The problem is that the patch,
as up currently, looks for foo.c.orig instead of foo.c. In other words,

    --- dir/foo.c.orig
    +++ dir/foo.c.orig  (WRONG)

    --- dir/foo.c.orig
    +++ dir/foo.c       (CORRECT)

> I think that, if/when this patch is actually submitted to the OpenSSH
> folks, I'll let the mavins there decide whether or not to have a '-L'
> option.

Fair enough, though I think there might be more value in just
(unconditionally) printing a tally at the end of how many valid hosts
were found, how many had no host algs, etc. (a bit like what "md5sum
-c" does when it encounters errors).

> To satisfy my curiosity, did you observe any missing hosts when you use
> the '-L' option (and it actually completes)?

Ah, I forgot to report on this; my bad!

I do see a few hosts in the input list that are not mentioned anywhere
in the stderr output. These appear to be strictly "alias" IP addresses,
e.g. for an input line of

    10.0.0.1,10.0.0.2,10.0.0.3 host.example.com,10.0.0.1,10.0.0.2,...
             ^^^^^^^^ ^^^^^^^^
                   these

This is the correct behavior, I take it?

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list