mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 6 additions and 3 deletions
|
|
@ -135,13 +135,16 @@ inet_aton(cp, addr)
|
|||
c++;
|
||||
break;
|
||||
|
||||
case '\0' :
|
||||
case '\0':
|
||||
gotend = 1;
|
||||
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