bug-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-radius] "unknown block statement" error on empty block


From: Maurice Makaay
Subject: [Bug-gnu-radius] "unknown block statement" error on empty block
Date: Tue, 4 Nov 2003 02:26:18 +0100

Goodnight,

This is a very small configuration parser bug. It occurs when there are
empty block statements in the config file:

----------------------------------------------------------------------
auth {
};
                                                                                
acct {
        ....
        ....
        ....
};
----------------------------------------------------------------------

The error log will read:

Nov 04 01:57:50 <path>/raddb/config:24: parse error
Nov 04 01:57:50 <path>/raddb/config:26: unknown block statement
Nov 04 01:57:50 <path>/raddb/config:<last line of file + 1>: parse error

It seems that the config parser does not like a closing block right after
the opening block. It will spawn a parse error and keep parsing the following
statements as being statements for the block which failed to close
properly. Therefore "acct" spawns "unknown block statement" (since it's not
a block statement that can occur inside an auth block).

IMHO there are two ways to go:
1) Since there was a config parsing error, do not try to startup at all;
2) Fix the problem so the closing brace will be properly recognized.


Regards,

-- Maurice Makaay





reply via email to

[Prev in Thread] Current Thread [Next in Thread]