summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2011-04-29 17:19:13 +0000
committerespie <espie@openbsd.org>2011-04-29 17:19:13 +0000
commitb527d25b801666d31ba658ee9c859686eafa4081 (patch)
treeb16a56ff89b46a6860995acc6f730b15d3812e9c
parentAdd the Samsung Nexus S, commited over it. (diff)
downloadwireguard-openbsd-b527d25b801666d31ba658ee9c859686eafa4081.tar.xz
wireguard-openbsd-b527d25b801666d31ba658ee9c859686eafa4081.zip
slightly better netmask regexp
okay millert@ henning@
-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 ");