summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-04-29 17:19:14 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-04-29 17:19:14 +0000
commit59b23d037b45eb2268345354e3897cd3e4c40333 (patch)
tree9fc1ee148459f110403cfba5247e2b78e3020d1b /usr.bin
parent5541bff4726836c9ef2333a6aac7e54ab26edf92 (diff)
slightly better netmask regexp
okay millert@ henning@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sudo/toke.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sudo/toke.l b/usr.bin/sudo/toke.l
index d5fc72400dc..719b9051463 100644
--- a/usr.bin/sudo/toke.l
+++ b/usr.bin/sudo/toke.l
@@ -362,7 +362,7 @@ NOSETENV[[:blank:]]*: {
return(NTWKADDR);
}
-{IPV4ADDR}\/([12][0-9]*|3[0-2]*) {
+{IPV4ADDR}\/([12]?[0-9]|3[0-2]|) {
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("NTWKADDR ");