ANNOUNCE: openssh-1.2.1pre18

Ben Taylor the_h1ghlander at yahoo.com
Fri Dec 17 02:17:21 EST 1999



I think a better solution would be to check if
AF_INET6
exists and do the first if it does and do the second
if it doesn't.  sorry I don't have the patch as I'm
not at home.

Regards,

Ben

--- Damien Miller <djm at mindrot.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thu, 16 Dec 1999, Marc G. Fournier wrote:
> 
> > 
> > Solaris 7/x86:
> > 
> > canohost.c:163: `AF_INET6' undeclared (first use
> in this function)
> 
> Could you try the attached patch.
> 
> The IPv6 support in the OpenBSD tree must be landing
> sooner than
> I expected.
> 
> Damien
> 
> - --
> | "Bombay is 250ms from New York in the new world
> order" - Alan Cox
> | Damien Miller - http://www.mindrot.org/
> | Email: djm at mindrot.org (home) -or- djm at ibs.com.au
> (work)
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.0 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
>
iD8DBQE4WPDWormJ9RG1dI8RAusbAJ4gFv2WOyCRv4mPsZiAGOtfeE6GfgCffLhV
> 6OxEsXItr9gc4tRLdWFuBW8=
> =JRev
> -----END PGP SIGNATURE-----
> > Index: canohost.c
>
===================================================================
> RCS file: /var/cvs/openssh/canohost.c,v
> retrieving revision 1.5
> diff -u -r1.5 canohost.c
> --- canohost.c	1999/12/13 23:47:15	1.5
> +++ canohost.c	1999/12/16 14:01:37
> @@ -160,8 +160,9 @@
>  	memset(&from, 0, sizeof(from));
>  	if (getpeername(in, (struct sockaddr *) & from,
> &fromlen) < 0)
>  		return 0;
> -	if (from.sin_family != AF_INET && from.sin_family
> != AF_INET6)
> +	if (from.sin_family != AF_INET)
>  		return 0;
> +
>  	return 1;
>  }
>  
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com





More information about the openssh-unix-dev mailing list