From: Alan T. DeKok Date: Fri, 24 Feb 2023 15:41:28 +0000 (-0500) Subject: just use the dict we loaded. No need to do more lookups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24dbc83d28c669e2d833d74955730b3a695b067;p=thirdparty%2Ffreeradius-server.git just use the dict we loaded. No need to do more lookups --- diff --git a/src/bin/unit_test_module.c b/src/bin/unit_test_module.c index 39461973eae..4734e259955 100644 --- a/src/bin/unit_test_module.c +++ b/src/bin/unit_test_module.c @@ -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: