summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2011-01-23 11:19:55 +0000
committerbluhm <bluhm@openbsd.org>2011-01-23 11:19:55 +0000
commitd07c4539f035aaa57c8b2e221fcb5b30640e6c77 (patch)
tree476df086b60fb6c49f3e1dfffe420fcf597d6215
parentAllow top-bit-set characters to be used for key bindings, from Tiago (diff)
downloadwireguard-openbsd-d07c4539f035aaa57c8b2e221fcb5b30640e6c77.tar.xz
wireguard-openbsd-d07c4539f035aaa57c8b2e221fcb5b30640e6c77.zip
'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);