2002-01-06 Yoshinori K. Okuji <okuji@gnu.org>

* netboot/misc.c (inet_aton): Don't check if *P is an asterisk,
	if I is 3. Reported by Rick (his real name and address are
	unknown).
This commit is contained in:
okuji 2002-01-05 18:41:34 +00:00
parent a0c6c8b9af
commit 41e19993b5
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2002-01-06 Yoshinori K. Okuji <okuji@gnu.org>
* netboot/misc.c (inet_aton): Don't check if *P is an asterisk,
if I is 3. Reported by Rick (his real name and address are
unknown).
2002-01-03 Yoshinori K. Okuji <okuji@gnu.org> 2002-01-03 Yoshinori K. Okuji <okuji@gnu.org>
Update the netboot stuff to Etherboot-5.0.5. Update the netboot stuff to Etherboot-5.0.5.

View file

@ -221,7 +221,7 @@ inet_aton (char *p, in_addr *addr)
if (val < 0 || val > 255) if (val < 0 || val > 255)
return 0; return 0;
if (*p++ != '.') if (i != 3 && *p++ != '.')
return 0; return 0;
ip = (ip << 8) | val; ip = (ip << 8) | val;