]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- The octal check is wrong...let convert_num complain about this, not the
authorDavid Hankins <dhankins@isc.org>
Tue, 1 Mar 2005 23:22:34 +0000 (23:22 +0000)
committerDavid Hankins <dhankins@isc.org>
Tue, 1 Mar 2005 23:22:34 +0000 (23:22 +0000)
  parser "00:" is what is parsed as the hour on lease timestamps for example.

common/conflex.c

index 88c9be5c2dfe649c07a828691ed28f58c388cd18..8b263708741b9b891d6af1e9b3fa1f148a4d4212 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: conflex.c,v 1.92.2.11 2005/03/01 23:07:22 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: conflex.c,v 1.92.2.12 2005/03/01 23:22:34 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -489,12 +489,6 @@ static enum dhcp_token read_number (c, cfile)
        cfile -> tlen = i;
        cfile -> tval = cfile -> tokbuf;
 
-       /* Check for octal after the fact - octal cannot be a NUMBER as
-        * atoi() will not parse it properly.
-        */
-       if ((token == NUMBER) && (cfile->tokbuf[0] == '0') && (i > 1))
-               token = NUMBER_OR_NAME;
-
        return token;
 }