summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-01-23 11:19:56 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-01-23 11:19:56 +0000
commitbe8f2031d48014bea7a621b3c4298c0c5d0d7284 (patch)
tree3c125cb9d137a3f1f806d439ab9124c767cef583
parent153bef8c22c89b6c940ff2e45809f86e47e7b277 (diff)
'pfctl -x none' did not turn debugging off. Skip the syslog internal
"no priority" priority named "none". This makes 'pfctl -x none' equivalent to 'pfctl -x crit'. ok mcbride@ henning@
-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 aadac9241f6..3e5699cb5d2 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.272 2010/10/12 17:45:06 bluhm Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.273 2011/01/23 11:19:55 bluhm Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -318,7 +318,7 @@ string_to_loglevel(const char *name)
}
*p = '\0';
for (c = prioritynames; c->c_name; c++)
- if (!strcmp(buf, c->c_name))
+ if (!strcmp(buf, c->c_name) && c->c_val != INTERNAL_NOPRI)
return (c->c_val);
return (-1);