Opened 15 years ago

Last modified 8 years ago

#163 closed defect (Fixed)

tor_socketpair doesn't report errors on win32

Reported by: arma Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: arma Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


tor_socketpair() assumes errno is how you report errors, but that isn't
the case for Windows, which is where it's most likely to be called.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (3)

comment:1 Changed 15 years ago by nickm

Fixed in CVS.

It's not possible (or at least, not obviously possible) to change what windows gives for an
errno. Instead, I changed the return value for tor_socketpair to be 0 on success, -errno on

comment:2 Changed 15 years ago by nickm

flyspray2trac: bug closed.

comment:3 Changed 8 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.