mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Allow whitespace termination. Internal use of /etc/resolv.conf relies
on this, and who knows what else would, too...
This commit is contained in:
parent
28585846d6
commit
8308463eba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52708
|
@ -140,8 +140,11 @@ inet_aton(cp, addr)
|
|||
break;
|
||||
|
||||
default:
|
||||
/* Invalid character, so fail */
|
||||
return (0);
|
||||
if (isspace(*c)) {
|
||||
gotend = 1;
|
||||
break;
|
||||
} else
|
||||
return (0); /* Invalid character, so fail */
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue