Ignore non-pairs when instantiating modules in "instantiate"
authoraland <aland>
Tue, 11 Mar 2008 01:43:48 +0000 (01:43 +0000)
committeraland <aland>
Tue, 11 Mar 2008 01:43:48 +0000 (01:43 +0000)
section.  Closes bug #528

src/main/modules.c

index b0a07b4..24063c5 100644 (file)
@@ -1001,10 +1001,11 @@ int setup_modules(int reload, CONF_SECTION *config)
                     ci=cf_item_find_next(cs, ci)) {
 
                        /*
-                        *      Skip sections.  They'll be handled
-                        *      later, if they're referenced at all...
+                        *      Skip sections and "other" stuff.
+                        *      Sections will be handled later, if
+                        *      they're referenced at all...
                         */
-                       if (cf_item_is_section(ci)) {
+                       if (!cf_item_is_pair(ci)) {
                                continue;
                        }