diff options
author | [email protected] <[email protected]> | 2016-02-19 19:54:40 -0500 |
---|---|---|
committer | [email protected] <[email protected]> | 2016-02-19 19:54:40 -0500 |
commit | 00ccd3bd3f9b82ae8fc167a0b61617aa0d231440 (patch) | |
tree | ed1a40e4aeceaba20388398ae53b79583d77ef1a /unix.c | |
parent | 809a1d15b6ecd826fbaacf060b748b7070fb8e73 (diff) | |
download | enet-00ccd3bd3f9b82ae8fc167a0b61617aa0d231440.tar.gz enet-00ccd3bd3f9b82ae8fc167a0b61617aa0d231440.zip |
return -1 instead of 0 if getnameinfo returns an error
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,7 +204,7 @@ enet_address_get_host (const ENetAddress * address, char * name, size_t nameLeng return 0; } if (err != EAI_NONAME) - return 0; + return -1; #else struct in_addr in; struct hostent * hostEntry = NULL; |