From: Arran Cudbard-Bell Date: Tue, 7 Feb 2023 21:01:47 +0000 (-0600) Subject: Remove unused table lookups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fb9930c6d165130892b7f06604fa962779f3440;p=thirdparty%2Ffreeradius-server.git Remove unused table lookups --- diff --git a/src/process/radius/base.c b/src/process/radius/base.c index 16a7c369655..d667dbd9f6d 100644 --- a/src/process/radius/base.c +++ b/src/process/radius/base.c @@ -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, "")); + 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, "")); + RDEBUG("Invalid value for 'Auth-Type' attribute, cannot authenticate the user - rejecting the request"); goto reject; } diff --git a/src/process/tacacs/base.c b/src/process/tacacs/base.c index 8b7c19fa0d1..f619ff9a3f1 100644 --- a/src/process/tacacs/base.c +++ b/src/process/tacacs/base.c @@ -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, "")); + 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, "")); + vp->da->name); goto reject; }