summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-08-15 07:24:29 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-08-15 07:24:29 +0000
commit83c9532d92228fd7923eb064632bcdbbc76fcfad (patch)
treee20cb52caa64ae56a0ae37ccc0e634f6897f2aa9
parentfa911f516cbab38090ae0aa69eae27c7ef758f7c (diff)
Accept empty lines for authopts to fix the parser to accept the old
syntax. It was broken by parse.y 1.18. Found by Mike at mgm51.com.
-rw-r--r--usr.sbin/radiusd/parse.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/radiusd/parse.y b/usr.sbin/radiusd/parse.y
index ec062b0f16c..cd1fe7a0d83 100644
--- a/usr.sbin/radiusd/parse.y
+++ b/usr.sbin/radiusd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.26 2024/07/14 16:09:23 yasuoka Exp $ */
+/* $OpenBSD: parse.y,v 1.27 2024/08/15 07:24:28 yasuoka Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -451,7 +451,8 @@ authopts : authopts '\n' authopt
| authopt
;
-authopt : AUTHENTICATE_BY STRING {
+authopt : /* empty */
+ | AUTHENTICATE_BY STRING {
struct radiusd_module_ref *modref;
if (authen.auth != NULL) {