[Bug 1742] New: sshconnect should use port returned by getaddrinfo

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Mar 25 06:29:04 EST 2010


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

           Summary: sshconnect should use port returned by getaddrinfo
           Product: Portable OpenSSH
           Version: 5.4p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: rees at merit.edu


Created an attachment (id=1820)
 --> (https://bugzilla.mindrot.org/attachment.cgi?id=1820)
use getaddrinfo for sshd port lookup

Ssh, in ssh_connect(), calls getaddrinfo() to get the the server
endpoint address. Getaddrinfo returns a port number but this is
ignored. Ssh instead makes an unnecessary call to getservbyname() to
get the port number. In most cases this makes no difference, but this
makes it impossible to use DNS SRV records to find ssh services.

The attached patch eliminates the call to getservbyname and instead
uses the port returned by getaddrinfo.

-- 
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