]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set an error string
authorAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2023 14:35:50 +0000 (09:35 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2023 14:36:54 +0000 (09:36 -0500)
src/lib/server/cf_file.c

index c7dc8d2e6af01a4069f7fa43ee054641618d2e7e..2178e3791f1eb2bbfc06a124f79633e6b6ad9c40 100644 (file)
@@ -1539,7 +1539,11 @@ static CONF_ITEM *process_if(cf_stack_t *stack)
                /*
                 *      Parse failures not at EOL are real errors.
                 */
-               if (!eol) goto error;
+               if (!eol) {
+                       slen = 0;
+                       fr_strerror_const("Unexpected EOF");
+                       goto error;
+               }
 
                /*
                 *      Parse failures at EOL means that we read more data.