Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IPv6 support is broken #140

@wdlkmpx

Description

@wdlkmpx

Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685910
Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686270

There are 2 patches
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=685910;filename=gftp-ipv6-dataconn.patch;msg=5
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=686270;filename=gftp-ipv6-dataconn2.patch;msg=5

Both patches have been partially applied (one way or another), but it's obviously broken because of this line in socket-connect.c

memcpy (request->remote_addr, &((struct sockaddr_in *) current_hostp->ai_addr)->sin_addr,  request->remote_addr_len);

There's no logic to copy sin6_addr if protocol is AF_INET6. This is easy to fix, but how to test it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions