aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2024-10-02 06:42:56 +0000
committerKristof Provost <kp@FreeBSD.org>2024-10-10 12:10:40 +0000
commit6562157dfad0d18447cfcac08435f7ffdb8fa46c (patch)
tree04605b95cf87cf6f3eee07e8a6b3abd4334e231a
parentd01949e8a210c4531ed4172e344501b37ded729e (diff)
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
-rw-r--r--sbin/pfctl/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index ad25f1996d36..f198dcb0b054 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -4214,7 +4214,7 @@ tos : STRING {
| NUMBER {
$$ = $1;
if ($$ < 0 || $$ > 255) {
- yyerror("illegal tos value %s", $1);
+ yyerror("illegal tos value %lu", $1);
YYERROR;
}
}