Andrew Scott 6299bdbf04
src/common: return -1 from get_addr on error
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.
2024-10-29 18:37:31 -04:00
..
2017-03-11 21:30:01 -08:00
2024-07-15 23:54:25 +02:00
2017-04-10 21:26:13 +02:00
2020-07-24 19:15:02 +02:00
2017-04-10 21:26:13 +02:00
2024-07-15 23:54:25 +02:00
2017-03-11 21:30:01 -08:00
2017-03-11 14:23:02 -08:00
2020-05-24 14:12:40 +02:00
2021-01-31 13:46:12 +01:00
2014-06-01 08:46:54 +02:00
2017-03-11 21:30:49 -08:00
2022-07-18 23:35:54 +02:00
2017-03-11 21:30:01 -08:00
2021-01-31 14:01:13 +01:00