]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
show which condition failed to parse
authorAlan T. DeKok <aland@freeradius.org>
Sun, 8 Oct 2023 13:11:40 +0000 (09:11 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 8 Oct 2023 13:11:40 +0000 (09:11 -0400)
src/lib/server/cf_file.c

index 8a9090d0b7ae7efd300982278845b3a3dc3265b8..0b5afe4782ad855cd1616e9c12c2832c24c41075 100644 (file)
@@ -1642,7 +1642,10 @@ static CONF_ITEM *process_if(cf_stack_t *stack)
                 */
                stack->fill = UNCONST(char *, p);
                rcode = cf_file_fill(stack);
-               if (rcode < 0) return NULL;
+               if (rcode < 0) {
+                       cf_log_err("Failed parsing condition");
+                       return NULL;
+               }
        }
 
        fr_assert((size_t) slen < (stack->bufsize - 1));