From: Arran Cudbard-Bell Date: Wed, 21 Jun 2017 22:33:48 +0000 (-0400) Subject: Pass the return code of cf_subsection_parse back up X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e48d70ed30641ceae85d66714b4dd53bff9fc5f;p=thirdparty%2Ffreeradius-server.git Pass the return code of cf_subsection_parse back up So we error out if the callbacks return < 0... Oops. --- diff --git a/src/main/cf_parse.c b/src/main/cf_parse.c index c3fb3364948..7856db2f899 100644 --- a/src/main/cf_parse.c +++ b/src/main/cf_parse.c @@ -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 */