mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 17:01:15 +08:00
Update to FreeBSD head 2018-02-01
Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4. Update #3472.
This commit is contained in:
@@ -1279,7 +1279,8 @@ explore_numeric(const struct addrinfo *pai, const char *hostname,
|
||||
* does not accept. So we need to separate the case for
|
||||
* AF_INET.
|
||||
*/
|
||||
if (inet_aton(hostname, (struct in_addr *)pton) != 1)
|
||||
if (inet_aton(hostname, (struct in_addr *)pton) != 1 ||
|
||||
hostname[strspn(hostname, "0123456789.xabcdefXABCDEF")] != '\0')
|
||||
return 0;
|
||||
p = pton;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user