1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00: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:
Kristof Provost 2024-10-02 08:42:56 +02:00
parent d01949e8a2
commit 6562157dfa

View File

@ -4214,7 +4214,7 @@ tos : STRING {
| NUMBER {
$$ = $1;
if ($$ < 0 || $$ > 255) {
yyerror("illegal tos value %s", $1);
yyerror("illegal tos value %lu", $1);
YYERROR;
}
}