]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Whitespace fixes
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jan 2020 16:11:35 +0000 (11:11 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 30 Jan 2020 04:46:54 +0000 (23:46 -0500)
src/lib/server/cf_parse.c

index 904cb0de58df366447fbd04ebbbf1151ed1ad2fd..a74f9e9f2bdf268a558963976bb1015825e6ad1d 100644 (file)
@@ -904,38 +904,38 @@ static int cf_section_parse_init(CONF_SECTION *cs, void *base, CONF_PARSER const
                /*
                 *      It exists, we don't have to do anything else.
                 */
-                 if (subcs) return 0;
+               if (subcs) return 0;
 
                /*
                 *      If there is no subsection, either complain,
                 *      allow it, or create it with default values.
                 */
-                 if (rule->type & FR_TYPE_REQUIRED) {
-                         cf_log_err(cs, "Missing %s {} subsection", rule->name);
-                         return -1;
-                 }
-
-                 /*
-                  *    It's OK for this to be missing.  Don't
-                  *    initialize it.
-                  */
-                 if ((rule->type & FR_TYPE_OK_MISSING) != 0) return 0;
-
-                 /*
-                  *    If there's no subsection in the
-                  *    config, BUT the CONF_PARSER wants one,
-                  *    then create an empty one.  This is so
-                  *    that we can track the strings,
-                  *    etc. allocated in the subsection.
-                  */
-                 if (DEBUG_ENABLED4) cf_log_debug(cs, "Allocating fake section \"%s\"", rule->name);
-
-                 if (rule->ident2 != CF_IDENT_ANY) name2 = rule->ident2;
-                 subcs = cf_section_alloc(cs, cs, rule->name, name2);
-                 if (!subcs) return -1;
-
-                 cf_item_add(cs, &(subcs->item));
-                 return 0;
+               if (rule->type & FR_TYPE_REQUIRED) {
+                       cf_log_err(cs, "Missing %s {} subsection", rule->name);
+                       return -1;
+               }
+
+               /*
+                *      It's OK for this to be missing.  Don't
+                *      initialize it.
+                */
+               if ((rule->type & FR_TYPE_OK_MISSING) != 0) return 0;
+
+               /*
+                *      If there's no subsection in the
+                *      config, BUT the CONF_PARSER wants one,
+                *      then create an empty one.  This is so
+                *      that we can track the strings,
+                *      etc. allocated in the subsection.
+                */
+               if (DEBUG_ENABLED4) cf_log_debug(cs, "Allocating fake section \"%s\"", rule->name);
+
+               if (rule->ident2 != CF_IDENT_ANY) name2 = rule->ident2;
+               subcs = cf_section_alloc(cs, cs, rule->name, name2);
+               if (!subcs) return -1;
+
+               cf_item_add(cs, &(subcs->item));
+               return 0;
        }
 
        /*