Subject: pkg/10526: OpenSSH can't resolve names on 64 bit platforms
To: None <gnats-bugs@gnats.netbsd.org>
From: None <elric@netbsd.org>
List: netbsd-bugs
Date: 07/07/2000 00:46:13
>Number:         10526
>Category:       pkg
>Synopsis:       OpenSSH can't resolve names on 64 bit platforms
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 07 00:47:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Roland Dowdeswell
>Release:        Jul 6, 2000
>Organization:
TNF
>Environment:
System: NetBSD mail 1.4.2A NetBSD 1.4.2A (HOMEWORLD) #1: Tue Apr 11 15:24:17 PDT 2000 root@mail:/local/NetBSD/src/sys/arch/i386/compile/HOMEWORLD i386


	
>Description:
	OpenSSH as installed on alpha has a 64 bit issue that prevents the
	name resolution from working.
>How-To-Repeat:

$ ssh -v foo.bar
SSH Version OpenSSH_2.1.1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /etc/ssh_config
debug: Applying options for *
debug: Seeding random number generator
debug: ssh_connect: getuid 0 geteuid 0 anon 0
debug: Connecting to foo.bar [255.255.255.255] port 22.
debug: Seeding random number generator
debug: Allocated local port 963.
debug: connect: Permission denied
debug: Trying again...
debug: Connecting to foo.bar [255.255.255.255] port 22.
debug: Allocated local port 855.
debug: connect: Permission denied
debug: Trying again...
debug: Connecting to foo.bar [255.255.255.255] port 22.
debug: Allocated local port 911.

[ etc ]

>Fix:
Reading the source, this is a generic 64 bit issue and can be traced to
fake-getaddrinfo.c:89 where -1 is incorrectly assumed to be = -1U.  The
fix is to replace -1 with INADDR_NONE as specified in inet(3).
>Release-Note:
>Audit-Trail:
>Unformatted: