Commit 71765b58 authored by Shane Kerr's avatar Shane Kerr
Browse files

Minor bug in octal parsing fixed.

See RT ticket #16514 for more.
parent ddc73bc1
......@@ -54,6 +54,9 @@ suggested fixes to <dhcp-users@isc.org>.
Changes since 4.0.0a1
- Bug in octal parsing fixed. Thanks to Bernd Fuhrmann for the report
and fix.
- Autoconf now supplies proper flags for Solaris DHCPv6 builds.
- Fix for parsing error on some IPv6 addresses.
......
......@@ -34,7 +34,7 @@
#ifndef lint
static char copyright[] =
"$Id: conflex.c,v 1.111 2007/06/20 10:38:55 shane Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
"$Id: conflex.c,v 1.112 2007/07/03 09:51:58 shane Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
......@@ -540,7 +540,7 @@ static enum dhcp_token read_string (cfile)
} else
goto again;
} else {
if (c >= '0' && c <= '9') {
if (c >= '0' && c <= '7') {
value = value * 8 + (c - '0');
} else {
if (value != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment