[Bug 2814] New: Connection error should report failure instead of success

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Dec 20 05:38:32 AEDT 2017


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

            Bug ID: 2814
           Summary: Connection error should report failure instead of
                    success
           Product: Portable OpenSSH
           Version: 7.6p1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: mvrmanning at gmail.com

Created attachment 3106
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3106&action=edit
Suggested diff

When the connection fails, the error handling reports success if no
errno
was provided, as this defaults to 0 (Success). As this can never be the 
case when an error occurs, instead the output should show a failure.

Forced example:
ssh -6 -b 10.0.0.3 vyatta at 2000::4
getaddrinfo: 10.0.0.3: Address family for hostname not supported
ssh: connect to host 2000::4 port 22: Success

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


More information about the openssh-bugs mailing list