summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristiano F. Haesbaert <haesbaert@cvs.openbsd.org>2011-09-07 23:40:53 +0000
committerChristiano F. Haesbaert <haesbaert@cvs.openbsd.org>2011-09-07 23:40:53 +0000
commit77a110e26f7764454ab85ae22fd6a0a8d080cba8 (patch)
treede7a92ca37860f7adea35c93dc68a83278879c5b
parent21a0fbc5e080e3d14d0c516913ccba01fd767dcc (diff)
Avoid possible SIGSEGV when wrong tos option.
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 36f05bfa565..8bf5604583f 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.608 2011/08/30 00:43:57 mikeb Exp $ */
+/* $OpenBSD: parse.y,v 1.609 2011/09/07 23:40:52 haesbaert Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -3381,7 +3381,7 @@ tos : STRING {
| NUMBER {
$$ = $1;
if ($$ > 255) {
- yyerror("illegal tos value %s", $1);
+ yyerror("illegal tos value %lu", $1);
YYERROR;
}
}