Blame SOURCES/dhcp-statement_parser.patch

9f3a1c
diff --git a/common/parse.c b/common/parse.c
9f3a1c
index e78223c2..656b378b 100644
9f3a1c
--- a/common/parse.c
9f3a1c
+++ b/common/parse.c
9f3a1c
@@ -5790,13 +5790,14 @@ int parse_X (cfile, buf, max)
9f3a1c
 				skip_to_semi (cfile);
9f3a1c
 				return 0;
9f3a1c
 			}
9f3a1c
-			convert_num (cfile, &buf [len], val, 16, 8);
9f3a1c
-			if (len++ > max) {
9f3a1c
+			if (len >= max) {
9f3a1c
 				parse_warn (cfile,
9f3a1c
 					    "hexadecimal constant too long.");
9f3a1c
 				skip_to_semi (cfile);
9f3a1c
 				return 0;
9f3a1c
 			}
9f3a1c
+			convert_num (cfile, &buf [len], val, 16, 8);
9f3a1c
+			len++;
9f3a1c
 			token = peek_token (&val, (unsigned *)0, cfile);
9f3a1c
 			if (token == COLON)
9f3a1c
 				token = next_token (&val,