Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #28995

Fix the IPv6 case of tor_ersatz_socketpair

In get_local_listener which is used by tor_ersatz_socketpair, sin6_family is currently being set to AF_INET in the IPv6 case when AF_INET6 should be used instead.

This code was introduced in commit 9b24609af003cb79091e628c179cf617ff41aae7 from this past August, so this is not a brand-new problem.

I tested this on my OpenBSD box by forcing an IPv6 socket to be used for tor_ersatz_socketpair and running the test suite. There is a test in the test suite that tests tor_ersatz_socketpair: it (of course) fails using the current AF_INET code but it passes when using AF_INET6 instead.

PR to follow to change AF_INET to AF_INET6 in the IPv6 case.

Trac:
Username: kjak

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking