]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Parent never read after updating
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 16 May 2020 18:45:36 +0000 (13:45 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 16 May 2020 18:45:36 +0000 (13:45 -0500)
src/lib/server/cf_file.c

index 48bbedabf707ee39a61dc7810811515a74bfb1e1..ae12c675898aeb295322522fae2bf51a56d4d75d 100644 (file)
@@ -1484,7 +1484,7 @@ static int parse_input(cf_stack_t *stack)
 
                if (parent == frame->special) frame->special = NULL;
 
-               frame->current = parent = cf_item_to_section(parent->item.parent);
+               frame->current = cf_item_to_section(parent->item.parent);
                ptr++;
                stack->ptr = ptr;
                return 1;
@@ -1599,7 +1599,7 @@ static int parse_input(cf_stack_t *stack)
                /*
                 *      The current section is now the child section.
                 */
-               frame->current = parent = css;
+               frame->current = css;
                frame->braces++;
                css = NULL;
                stack->ptr = ptr;