mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-25 09:07:49 +00:00
6299bdbf04
getaddrinfo will typically return negative values for errors, but this is not the case for all systems. For example, glibc defines the errors as negative, but the WSA equivalents are all positive. This commit unifies the approach within iodine by always returning -1 in the event getaddrinfo is unsuccessful.