summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2022-09-23 21:33:18 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2022-09-23 21:33:18 +0000
commitada3cda4b44d44f529a699a13d78bbde28fe3dd7 (patch)
treebf2445bdcac8ededbf285ed0584983f9f27db5ad
parent0a5624d64332d26a9bfe0c9a35d22a7fb4d28cfe (diff)
Fix detection of duplicate sticky-address in pf.conf parser.
reported to FreeBSD by Franco Fichtner; from Kristof Provost
-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 8a92a7e895c..2c5a49772ff 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.711 2021/10/25 14:50:29 sashan Exp $ */
+/* $OpenBSD: parse.y,v 1.712 2022/09/23 21:33:17 bluhm Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -3684,7 +3684,7 @@ pool_opt : BITMASK {
pool_opts.staticport = 1;
}
| STICKYADDRESS {
- if (filter_opts.marker & POM_STICKYADDRESS) {
+ if (pool_opts.marker & POM_STICKYADDRESS) {
yyerror("sticky-address cannot be redefined");
YYERROR;
}