mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
return -1 instead of 0 if getnameinfo returns an error
This commit is contained in:
parent
809a1d15b6
commit
00ccd3bd3f
1 changed files with 1 additions and 1 deletions
2
unix.c
2
unix.c
|
@ -204,7 +204,7 @@ enet_address_get_host (const ENetAddress * address, char * name, size_t nameLeng
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (err != EAI_NONAME)
|
if (err != EAI_NONAME)
|
||||||
return 0;
|
return -1;
|
||||||
#else
|
#else
|
||||||
struct in_addr in;
|
struct in_addr in;
|
||||||
struct hostent * hostEntry = NULL;
|
struct hostent * hostEntry = NULL;
|
||||||
|
|
Loading…
Reference in a new issue