[Bug 3580] New: ssh-keygen -l: "no comment" never appears again after the first comment

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Jun 19 22:11:41 AEST 2023


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

            Bug ID: 3580
           Summary: ssh-keygen -l: "no comment" never appears again after
                    the first comment
           Product: Portable OpenSSH
           Version: 9.3p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: Markus.Kuhn at cl.cam.ac.uk

When running ssh-keygen -l on an input file that contains both public
keys with and without comment, then the indicator "no comment" never
appears again after the first comment. This is because in
do_fingerprint() the variable "comment" is initialized to NULL only
once at the start of the function, but it must actually be
re-initialized for each line read.

For instructions on how to reproduce this bug, as well as a patch for
the very simple and obvious fix, please see my pull-request at

  https://github.com/openssh/openssh-portable/pull/407

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list