}
by_section:
- if (!vs) goto section_error;
-
/*
* First look for the section name in the module's
* bindings. If that fails, look for the alt
*/
mmb = module_binding_find(&mmc->rlm->method_group, section);
if (!mmb) {
- section_name_t const **alt_p = virtual_server_section_methods(vs, section);
+ section_name_t const **alt_p;
+
+ if (!vs) goto section_error;
+
+ alt_p = virtual_server_section_methods(vs, section);
if (alt_p) {
for (; *alt_p; alt_p++) {
mmb = module_binding_find(&mmc->rlm->method_group, *alt_p);