]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2002-01-06 Yoshinori K. Okuji <okuji@gnu.org>
authorokuji <okuji@localhost>
Sat, 5 Jan 2002 18:41:34 +0000 (18:41 +0000)
committerokuji <okuji@localhost>
Sat, 5 Jan 2002 18:41:34 +0000 (18:41 +0000)
* 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).

ChangeLog
netboot/misc.c

index 35308888ab1b4d618097fd8fa21ca94493923674..d0578cfdd349682a73ae28cc0f6140a7343b35bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        Update the netboot stuff to Etherboot-5.0.5.
index cb9bbff003c6576bdd505b2a58aea23fb1b544b7..10f189c2555530c0ed9f00ab130e657fd6da7833 100644 (file)
@@ -221,7 +221,7 @@ inet_aton (char *p, in_addr *addr)
       if (val < 0 || val > 255)
        return 0;
       
-      if (*p++ != '.')
+      if (i != 3 && *p++ != '.')
        return 0;
       
       ip = (ip << 8) | val;