]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove unused table lookups
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 7 Feb 2023 21:01:47 +0000 (15:01 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 7 Feb 2023 21:01:47 +0000 (15:01 -0600)
src/process/radius/base.c
src/process/tacacs/base.c

index 16a7c369655a0151ff0a0204d06ebae13db9c66b..d667dbd9f6dd7da9e43c40378792c90fd7683284 100644 (file)
@@ -439,8 +439,7 @@ RESUME(access_request)
         */
        vp = fr_pair_find_by_da(&request->control_pairs, NULL, attr_auth_type);
        if (!vp) {
-               RDEBUG("No 'Auth-Type' attribute found, cannot authenticate the user - rejecting the request",
-                      fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
+               RDEBUG("No 'Auth-Type' attribute found, cannot authenticate the user - rejecting the request");
 
        reject:
                request->reply->code = FR_RADIUS_CODE_ACCESS_REJECT;
@@ -449,8 +448,7 @@ RESUME(access_request)
 
        dv = fr_dict_enum_by_value(vp->da, &vp->data);
        if (!dv) {
-               RDEBUG("Invalid value for 'Auth-Type' attribute, cannot authenticate the user - rejecting the request",
-                      fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
+               RDEBUG("Invalid value for 'Auth-Type' attribute, cannot authenticate the user - rejecting the request");
 
                goto reject;
        }
index 8b7c19fa0d19f95af479f816165f97b6096c3a76..f619ff9a3f147fb93abff7146713eb2644c18e94 100644 (file)
@@ -475,8 +475,7 @@ RESUME(auth_start)
        vp = fr_pair_find_by_da(&request->control_pairs, NULL, attr_auth_type);
        if (!vp) vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_tacacs_authentication_type);
        if (!vp) {
-               RDEBUG("No 'Auth-Type' attribute found, cannot authenticate the user - rejecting the request",
-                      fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
+               RDEBUG("No 'Auth-Type' attribute found, cannot authenticate the user - rejecting the request");
 
        reject:
                request->reply->code = FR_TACACS_CODE_AUTH_REPLY_FAIL;
@@ -486,7 +485,7 @@ RESUME(auth_start)
        dv = fr_dict_enum_by_value(vp->da, &vp->data);
        if (!dv) {
                RDEBUG("Invalid value for '%s' attribute, cannot authenticate the user - rejecting the request",
-                      vp->da->name, fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
+                      vp->da->name);
 
                goto reject;
        }