http://bugs.winehq.org/show_bug.cgi?id=60204 Bug ID: 60204 Summary: AcceptEx broken for Unix-domain sockets Product: Wine Version: 11.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@list.winehq.org Reporter: me@purplesyringa.moe Target Milestone: --- Distribution: --- sockaddr_from_unix [1] is unimplemented for the AF_UNIX family. Normally that's not a problem, most callees ignore the -1 output silently, but fill_accept_output validates that it's non-negative and returns an error if so. Since errno is not set explicitly on this path, this just ends up forwarding the last native error, i.e. garbage. I'm not sure if the moral of the story is that sockaddr_from_unix should be validated everywhere else (from a quick glance at least IOCTL_AFD_WINE_GETPEERNAME seems to misbehave and return STATUS_BUFFER_TOO_SMALL in this case) and implemented for AF_UNIX, or if fill_accept_output should ignore errors just like other callers. [1]: https://gitlab.winehq.org/wine/wine/-/blob/9306b8e8de4efe3a6035bc5df878e7504... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.