summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-09-30 16:38:02 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-09-30 16:38:02 +0000
commit6bd7002056ff9be8fa8549c359a8a8a1c173059a (patch)
tree7921d5d788cb3341f9adaac7f28b9f8ea5cec2e6
parent757242e84b35ff9d64f7490e8c7df131697c6f76 (diff)
print invalid hostmask when refusing it, ok deraadt@
-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 c38c8c0ed5a..d952ebf2f40 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.205 2004/09/27 12:51:12 jaredy Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.206 2004/09/30 16:38:01 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1224,7 +1224,7 @@ host(const char *s)
if ((p = strrchr(s, '/')) != NULL) {
mask = strtol(p+1, &q, 0);
if (!q || *q || mask > 128 || q == (p+1)) {
- fprintf(stderr, "invalid netmask\n");
+ fprintf(stderr, "invalid netmask '%s'\n", p);
return (NULL);
}
if ((ps = malloc(strlen(s) - strlen(p) + 1)) == NULL)