This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Incorrect addrlen when calling connect


On Mon, Jun 23, 2008 at 12:27 PM, Ulrich Drepper <drepper@redhat.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David Bartley wrote:
>> In resolv/res_send.c, connect may be passed a 'struct sockaddr_in'
>> although the addrlen will always be sizeof(struct sockaddr_in6).
>
> This shouldn't be a problem.  In what situation do you see a problem?

This is an issue on Solaris, which I'm aware is not a supported
platform. This patch would improve portability without any drawbacks
that I can see.

-- David

>
> - --
> â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkhfzvsACgkQ2ijCOnn/RHSZ5QCfUnyCSx9sW11NsEDDRLeIuCUL
> apcAn2KuG2xmC4YCaxX4R919Nq/CKYBr
> =y9sp
> -----END PGP SIGNATURE-----
>
>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]