From 3e976a28dfaa0a46b4d43324fde2a02b16362e54 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Thu, 15 Aug 2024 07:24:28 +0000 Subject: [PATCH] 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. --- usr.sbin/radiusd/parse.y | 5 +++-- 1 file 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 @@ -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) { -- 2.20.1