From: Alan T. DeKok Date: Tue, 31 Aug 2021 13:40:04 +0000 (-0400) Subject: no name2 and NULL means it's a match X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ae60e586e7b681499f620c858a938490f58e984;p=thirdparty%2Ffreeradius-server.git no name2 and NULL means it's a match --- diff --git a/src/lib/server/module.c b/src/lib/server/module.c index dfe31a86564..169d95a6e13 100644 --- a/src/lib/server/module.c +++ b/src/lib/server/module.c @@ -939,10 +939,11 @@ module_instance_t *module_by_name_and_method(module_method_t *method, rlm_compon if (!q) { for (j = 0; mi->module->method_names[j].name1 != NULL; j++) { methods = &mi->module->method_names[j]; + /* * If we do not have the second $method, then ignore it! */ - if (methods->name2 != CF_IDENT_ANY) continue; + if (methods->name2 && (methods->name2 != CF_IDENT_ANY)) continue; /* * Wildcard match name1, we're