From 6bd211bb877a56e785d9b73fafe653daf454bc44 Mon Sep 17 00:00:00 2001 From: Jamie Gritton Date: Mon, 27 Mar 2017 13:37:40 +0000 Subject: [PATCH] Same as r316022 (Fix hexadecimal escape codes in jail.conf(5)), but do it right this time. Reported by: Kyle Evans MFC after: 3 days --- usr.sbin/jail/jaillex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/jail/jaillex.l b/usr.sbin/jail/jaillex.l index 370b88625cdd..74b519110412 100644 --- a/usr.sbin/jail/jaillex.l +++ b/usr.sbin/jail/jaillex.l @@ -216,7 +216,7 @@ text2lval(size_t triml, size_t trimr, int tovar) *d = *++s - '0'; else if (s[1] >= 'A' && s[1] <= 'F') *d = *++s + (0xA - 'A'); - else if (s[1] >= 'a' && s[1] <= 'F') + else if (s[1] >= 'a' && s[1] <= 'f') *d = *++s + (0xa - 'a'); else break;