From: yasuoka Date: Thu, 15 Aug 2024 07:24:28 +0000 (+0000) Subject: Accept empty lines for authopts to fix the parser to accept the old X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e976a28dfaa0a46b4d43324fde2a02b16362e54;p=openbsd 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. --- 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 @@ -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) {