]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Reset subcs
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Jun 2017 00:13:12 +0000 (20:13 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Jun 2017 00:13:12 +0000 (20:13 -0400)
src/main/cf_parse.c

index 30e133b3f06920c08c0b34d89913902217a4cc65..6a8450c0af31d0615ea753c3ff3daf5982f984ff 100644 (file)
@@ -910,6 +910,7 @@ static int cf_subsection_parse(TALLOC_CTX *ctx, void *out, CONF_SECTION *cs, CON
         *      Handle the multi subsection case (which is harder)
         */
        while ((subcs = cf_section_find_next(cs, subcs, name, NULL))) count++;
+       subcs = NULL;
 
        /*
         *      Allocate an array to hold the subsections
@@ -926,6 +927,7 @@ static int cf_subsection_parse(TALLOC_CTX *ctx, void *out, CONF_SECTION *cs, CON
        for (subcs = cf_section_find(cs, name, NULL), i = 0;
             subcs;
             subcs = cf_section_find_next(cs, subcs, name, NULL), i++) {
+       subcs = NULL;
                uint8_t *buff = NULL;
 
                if (DEBUG_ENABLED4) cf_log_debug(cs, "Evaluating rules for %s[%i] section.  Output %p",