Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 823
    • Issues 823
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 33
    • Merge requests 33
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #28995
Closed
Open
Created Jan 04, 2019 by Trac@tracbot

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 9b24609a 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