Commit 7dc9b5fb authored by David Hankins's avatar David Hankins
Browse files

- MINUS tokens should be parseable again. [ISC-Bugs #17289]

parent ffdf3c8c
......@@ -139,6 +139,8 @@ suggested fixes to <dhcp-users@isc.org>.
- The failover server no longer issues a floating point error if it encounters
a previously undefined option code.
- MINUS tokens should be parseable again.
Changes since 4.0.0b3
- The reverse dns name for PTR updates on IPv6 addresses has been fixed to
......
......@@ -649,7 +649,14 @@ static enum dhcp_token read_number (c, cfile)
cfile -> tlen = i;
cfile -> tval = cfile -> tokbuf;
return token;
/*
* If this entire token from start to finish was "-", such as
* the middle parameter in "42 - 7", return just the MINUS token.
*/
if ((i == 1) && (cfile->tokbuf[i] == '-'))
return MINUS;
else
return token;
}
static enum dhcp_token read_num_or_name (c, cfile)
......
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