summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhartmei <dhartmei@openbsd.org>2003-01-07 04:20:06 +0000
committerdhartmei <dhartmei@openbsd.org>2003-01-07 04:20:06 +0000
commit25a7417b34b897126ed6340be68e5b4bb0fbf1bb (patch)
tree986412d2aa9829d7c7aae9e6c7193ec92d5cadc9
parentAdd function to search for and remove stale rulesets from other authpf (diff)
downloadwireguard-openbsd-25a7417b34b897126ed6340be68e5b4bb0fbf1bb.tar.xz
wireguard-openbsd-25a7417b34b897126ed6340be68e5b4bb0fbf1bb.zip
Allow underscore at the beginning of strings, fixes
pass all user _spamd which was refused as syntax error before. Reported by Joe Nall. ok henning@
-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 1c2edb43550..5dc0dccb920 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.280 2003/01/07 00:21:07 dhartmei Exp $ */
+/* $OpenBSD: parse.y,v 1.281 2003/01/07 04:20:06 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -3739,7 +3739,7 @@ top:
x != '!' && x != '=' && x != '/' && x != '#' && \
x != ','))
- if (isalnum(c) || c == ':') {
+ if (isalnum(c) || c == ':' || c == '_') {
do {
*p++ = c;
if ((unsigned)(p-buf) >= sizeof(buf)) {