]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Retain matched name1/name2
authorNick Porter <nick@portercomputing.co.uk>
Tue, 16 Apr 2024 18:26:23 +0000 (19:26 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 17 Apr 2024 08:57:37 +0000 (09:57 +0100)
src/lib/server/module_rlm.c

index f799c2b785a035d25b81a23cc16c36bcd1d69a1e..59ae0680d71028e6f474cd6b339030276af57dfb 100644 (file)
@@ -761,12 +761,13 @@ module_instance_t *module_rlm_by_name_and_method(module_method_t *method, call_e
                *name2 = name + (q - inst_name);
                *method = methods->method;
                if (method_env) *method_env = methods->method_env;
-               break;
+               goto finish;
        }
 
        *name1 = name + (p - inst_name);
        *name2 = NULL;
 
+finish:
        talloc_free(inst_name);
        return mi;
 }