summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2005-03-01 23:22:34 +0000
committerDavid Hankins <dhankins@isc.org>2005-03-01 23:22:34 +0000
commitc926d385c9df327e63a683b4ad639859d3e91220 (patch)
tree3e73589603db56e2ff53d5bab8ecf29de6f170d6
parent171548e98ad04ed046436ae6f8a04f155850c5cc (diff)
downloadisc-dhcp-c926d385c9df327e63a683b4ad639859d3e91220.tar.gz
- The octal check is wrong...let convert_num complain about this, not the
parser "00:" is what is parsed as the hour on lease timestamps for example.
-rw-r--r--common/conflex.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/common/conflex.c b/common/conflex.c
index 88c9be5c..8b263708 100644
--- a/common/conflex.c
+++ b/common/conflex.c
@@ -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;
}