2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-03 07:45:47 +00:00

Fix regexp for matching a CIDR-style IPv4 netmask. From Marc Espie.

This commit is contained in:
Todd C. Miller
2011-04-29 11:22:49 -04:00
parent 8a76ddfef5
commit 189817a313
2 changed files with 631 additions and 645 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -438,7 +438,7 @@ NOLOG_INPUT[[:blank:]]*: {
return NTWKADDR; return NTWKADDR;
} }
{IPV4ADDR}\/([12][0-9]*|3[0-2]*) { {IPV4ADDR}\/([12]?[0-9]|3[0-2]) {
if (!fill(yytext, yyleng)) if (!fill(yytext, yyleng))
yyterminate(); yyterminate();
LEXTRACE("NTWKADDR "); LEXTRACE("NTWKADDR ");