Tor doesn't pass the appropriate family to getsockopt on src/or/connection_edge.c
Tor tries to fetch the original IP address for REDIRECTed packages in destination_from_socket
The problem is that the code uses SOL_IP and SO_ORIGINAL_DST when it should use in the case of IPv6 SOL_IPV6 and IP6T_SO_ORIGINAL_DST. Not doing so results in a ENOENT error being returned instead and the connection dying.
Trac:
Username: klondike