diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2024-08-15 07:24:29 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2024-08-15 07:24:29 +0000 |
commit | 83c9532d92228fd7923eb064632bcdbbc76fcfad (patch) | |
tree | e20cb52caa64ae56a0ae37ccc0e634f6897f2aa9 | |
parent | fa911f516cbab38090ae0aa69eae27c7ef758f7c (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.y | 5 |
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) { |