From: David Hankins Date: Sat, 20 Jun 2009 15:45:50 +0000 (+0000) Subject: Search for '-' in 'client-hostname' at correct index. [ISC-Bugs #19840] X-Git-Tag: v4_2_0a1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ef5db715e202470cece3c62750aafe5a475594b;p=thirdparty%2Fdhcp.git Search for '-' in 'client-hostname' at correct index. [ISC-Bugs #19840] --- diff --git a/common/conflex.c b/common/conflex.c index d17b3040a..2ce948401 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"))