mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
pfctl: avoid possible SIGSEGV when wrong tos option
Obtained from: OpenBSD, haesbaert <haesbaert@openbsd.org>, 934eaac797 Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D46933
This commit is contained in:
parent
d01949e8a2
commit
6562157dfa
@ -4214,7 +4214,7 @@ tos : STRING {
|
||||
| NUMBER {
|
||||
$$ = $1;
|
||||
if ($$ < 0 || $$ > 255) {
|
||||
yyerror("illegal tos value %s", $1);
|
||||
yyerror("illegal tos value %lu", $1);
|
||||
YYERROR;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user