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:
File diff suppressed because it is too large
Load Diff
@@ -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 ");
|
||||||
|
Reference in New Issue
Block a user