]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Search for '-' in 'client-hostname' at correct index. [ISC-Bugs #19840]
authorDavid Hankins <dhankins@isc.org>
Sat, 20 Jun 2009 15:45:50 +0000 (15:45 +0000)
committerDavid Hankins <dhankins@isc.org>
Sat, 20 Jun 2009 15:45:50 +0000 (15:45 +0000)
common/conflex.c

index d17b3040ae0ce8a113706874ba9d9786fc8a15e7..2ce948401363197fee869b68f954ab2a5f121c81 100644 (file)
@@ -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"))