Opened 14 years ago

Last modified 7 years ago

#163 closed defect (Fixed)

tor_socketpair doesn't report errors on win32

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

Description

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 14 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
failure.

comment:2 Changed 14 years ago by nickm

flyspray2trac: bug closed.

comment:3 Changed 7 years ago by nickm

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