summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index ed4a713917b..016a4c576d7 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.158 2003/05/17 02:04:24 henning Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.159 2003/05/19 18:21:01 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -965,7 +965,7 @@ host(const char *s)
if ((p = strrchr(s, '/')) != NULL) {
mask = strtol(p+1, &q, 0);
- if (!q || *q) {
+ if (!q || *q || mask > 128) {
fprintf(stderr, "invalid netmask\n");
return (NULL);
}