]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
just use the dict we loaded. No need to do more lookups
authorAlan T. DeKok <aland@freeradius.org>
Fri, 24 Feb 2023 15:41:28 +0000 (10:41 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 24 Feb 2023 15:44:06 +0000 (10:44 -0500)
src/bin/unit_test_module.c

index 39461973eaee82a7a54df82d69f7cf5ec9b9304c..4734e259955d2e89988de049674c6c50d1b7da8e 100644 (file)
@@ -141,7 +141,7 @@ static request_t *request_from_file(TALLOC_CTX *ctx, FILE *fp, RADCLIENT *client
         *      FIXME - Should be less RADIUS centric, but everything
         *      else assumes RADIUS at the moment so we can fix this later.
         */
-       request->dict = fr_dict_by_protocol_name(PROTOCOL_NAME);
+       request->dict = dict_protocol;
        if (!request->dict) {
                fr_strerror_printf_push("%s dictionary failed to load", PROTOCOL_NAME);
        error: