mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed bug #18966
This commit is contained in:
parent
e040302807
commit
337448322f
@ -128,7 +128,7 @@ static char *php_gethostbyaddr(char *ip)
|
||||
hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
|
||||
#endif
|
||||
|
||||
if (!hp) {
|
||||
if (!hp || hp->h_name == NULL || hp->h_name == '\0') {
|
||||
return estrdup(ip);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user