]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pass the return code of cf_subsection_parse back up
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Jun 2017 22:33:48 +0000 (18:33 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Jun 2017 22:33:48 +0000 (18:33 -0400)
So we error out if the callbacks return < 0... Oops.

src/main/cf_parse.c

index c3fb3364948bcb9f0573a85e3c2218c59ab917da..7856db2f899074f9842adb4664d2891f5cc30711 100644 (file)
@@ -1023,7 +1023,8 @@ int cf_section_parse(TALLOC_CTX *ctx, void *base, CONF_SECTION *cs)
                 *      Handle subsections specially
                 */
                if (FR_BASE_TYPE(rule->type) == FR_TYPE_SUBSECTION) {
-                       if (cf_subsection_parse(ctx, data, cs, rule) < 0) goto finish;
+                       ret = cf_subsection_parse(ctx, data, cs, rule);
+                       if (ret < 0) goto finish;
                        continue;
                } /* else it's a CONF_PAIR */