Bug#575163: libcommons-httpclient-java: commons-httpclient does not work with net.ipv6.bindv6only=1

Torsten Werner twerner at debian.org
Sat Mar 27 12:24:26 UTC 2010


reassign 575163 openjdk-6
found 575163 6b18~pre3-1
owner !
thanks

On Tue, Mar 23, 2010 at 11:13 PM, Torsten Werner <twerner at debian.org> wrote:
> It seems to be a bug of commons-httpclient.

No, but the following code in the function NET_InetAddressToSockaddr
in net_util_md.c in OpenJDK's JVM causes this:

        if (family == IPv4) { /* will convert to IPv4-mapped address */
            memset((char *) caddr, 0, 16);
            address = (*env)->GetIntField(env, iaObj, ia_addressID);
            if (address == INADDR_ANY) {
                /* we would always prefer IPv6 wildcard address
                   caddr[10] = 0xff;
                   caddr[11] = 0xff; */
            }

I'll fix this.


Torsten





More information about the pkg-java-maintainers mailing list