]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Not needed, we always sort the bindings now
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 8 Jun 2024 19:40:48 +0000 (15:40 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 8 Jun 2024 19:41:07 +0000 (15:41 -0400)
src/lib/server/module_rlm.c

index 7a54494771590b16f58fa01e9559dd01548cef54..ef94993c23e58599f176bee82ce46c4cb33da883 100644 (file)
@@ -1049,40 +1049,6 @@ static int module_method_validate(module_instance_t *mi)
                        in_order = false;
                        break;
                }
-#if 0
-               {
-                       module_method_binding_t const *pp;
-                       /*
-                       *       Print the correct order of bindings
-                       */
-                       FR_FAULT_LOG("%s: Module method bindings are not in the correct order, the correct order is:", mi->name);
-                       FR_FAULT_LOG(".bindings = (module_method_binding_t[]){");
-                       for (pp = fr_dlist_head(&bindings);
-                               pp;
-                               pp = fr_dlist_next(&bindings, pp)) {
-                               char const *name1_quote = (pp->section->name1 && (pp->section->name1 != CF_IDENT_ANY)) ? "\"" : "";
-                               char const *name2_quote = (pp->section->name2 && (pp->section->name2 != CF_IDENT_ANY)) ? "\"" : "";
-                               char const *name1 = pp->section->name1;
-                               char const *name2 = pp->section->name2;
-
-                               if (name1 == CF_IDENT_ANY) {
-                                       name1 = "CF_IDENT_ANY";
-                               } else if (!name1) {
-                                       name1 = "NULL";
-                               }
-                               if (name2 == CF_IDENT_ANY) {
-                                       name2 = "CF_IDENT_ANY";
-                               } else if (!name2) {
-                                       name2 = "NULL";
-                               }
-
-                               FR_FAULT_LOG("\t.section = SECTION_NAME(%s%s%s, %s%s%s)",
-                                               name1_quote, name1, name1_quote,
-                                               name2_quote, name2, name2_quote);
-                       }
-                       FR_FAULT_LOG("}");
-               }
-#endif
        }
 
        /*