summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2009-06-20 15:45:50 +0000
committerDavid Hankins <dhankins@isc.org>2009-06-20 15:45:50 +0000
commit8ef5db715e202470cece3c62750aafe5a475594b (patch)
tree8d9d5671237141746c5e6d20be7abc9148a57e61
parent8a4e543b51677c3033cb6a9fc0b77e772063dd6a (diff)
downloadisc-dhcp-8ef5db715e202470cece3c62750aafe5a475594b.tar.gz
Search for '-' in 'client-hostname' at correct index. [ISC-Bugs #19840]
-rw-r--r--common/conflex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/conflex.c b/common/conflex.c
index d17b3040..2ce94840 100644
--- a/common/conflex.c
+++ b/common/conflex.c
@@ -811,7 +811,7 @@ intern(char *atom, enum dhcp_token dfv) {
if (!strncasecmp(atom + 2, "ient", 4)) {
if (!strcasecmp(atom + 6, "s"))
return CLIENTS;
- if (atom[7] == '-') {
+ if (atom[6] == '-') {
if (!strcasecmp(atom + 7, "hostname"))
return CLIENT_HOSTNAME;
if (!strcasecmp(atom + 7, "identifier"))