-
Notifications
You must be signed in to change notification settings - Fork 163
Closed
Description
Latest Libstrophe branch fails to connect over ipv6 to a server on Windows 10.
The fix is to replace in sock.c, int sock_connect_error(const sock_t sock) function
struct sockaddr sa; with a struct socketaddr_storage sa.
The issue is that struct sockaddr is not guaranteed to be large enough to hold ipv6 adresses, and indeed it isn't on Windows, so getpeername(...) fails.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels