if (cs) {
RDEBUG("The 'send %s' section returned %s - not sending a response",
cf_section_name2(cs),
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
}
request->reply->code = PROCESS_CODE_DO_NOT_RESPOND;
break;
if (name2) {
snprintf(list_buffer, sizeof(list_buffer), "&%s", name2);
} else {
- snprintf(list_buffer, sizeof(list_buffer), "&%s", fr_table_str_by_value(pair_list_table, unlang_ctx->rules->attr.list_def, "???"));
+ snprintf(list_buffer, sizeof(list_buffer), "&%s", fr_table_str_by_value(pair_list_table, unlang_ctx->rules->attr.list_def, "<INVALID>"));
}
/*
subci = cf_reference_item(cs, cf_root(cf_section_to_item(action_cs)), value);
if (!subci) {
- cf_log_err(csi, "Unknown reference '%s'", value ? value : "???");
+ cf_log_err(csi, "Unknown reference '%s'", value ? value : "<INVALID>");
return false;
}
if (module_retry) {
cf_log_err(csi, "Cannot use a '%s = retry' action for a module which has its own retries",
- fr_table_str_by_value(mod_rcode_table, i, "???"));
+ fr_table_str_by_value(mod_rcode_table, i, "<INVALID>"));
return false;
}
if (disallow_retry_action) {
cf_log_err(csi, "max_rtx_count and max_rtx_duration cannot both be zero when using '%s = retry'",
- fr_table_str_by_value(mod_rcode_table, i, "???"));
+ fr_table_str_by_value(mod_rcode_table, i, "<INVALID>"));
return false;
}
!actions->retry.mrc &&
!fr_time_delta_ispos(actions->retry.mrd)) {
cf_log_err(csi, "Cannot use a '%s = retry' action without a 'retry { ... }' section.",
- fr_table_str_by_value(mod_rcode_table, i, "???"));
+ fr_table_str_by_value(mod_rcode_table, i, "<INVALID>"));
return false;
}
}
* All of the remaining things need a CONF_ITEM.
*/
if (!instruction->ci) {
- if (fr_value_box_bstrndup(ctx, vb, NULL, "???", 3, false) < 0) goto error;
+ if (fr_value_box_bstrndup(ctx, vb, NULL, "<INVALID>", 3, false) < 0) goto error;
goto finish;
}
{
fr_assert(!m->dead);
- if ((state < 0) || (state > m->def->max_state)) return "???";
+ if ((state < 0) || (state > m->def->max_state)) return "<INVALID>";
if (!state) {
if (m->current) {
state = m->current->def->number;
} else {
- return "???";
+ return "<INVALID>";
}
}
char const *fr_token_name(int token)
{
- return fr_table_str_by_value(fr_tokens_table, token, "???");
+ return fr_table_str_by_value(fr_tokens_table, token, "<INVALID>");
}
return -1;
}
- RDEBUG3("Found row: %s %s %s", row[0], fr_table_str_by_value(fr_tokens_table, op, "???"), row[3]);
+ RDEBUG3("Found row: %s %s %s", row[0], fr_table_str_by_value(fr_tokens_table, op, "<INVALID>"), row[3]);
value = row[3];
*/
if (request->reply->code == FR_RADIUS_CODE_ACCESS_REJECT) {
RDEBUG("The 'recv Access-Request' section returned %s - rejecting the request",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
send_reply:
UPDATE_STATE(reply);
if (request->reply->code == FR_RADIUS_CODE_DO_NOT_RESPOND) {
RDEBUG("The 'recv Access-Request' section returned %s - not sending a response",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
goto send_reply;
}
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, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
reject:
request->reply->code = FR_RADIUS_CODE_ACCESS_REJECT;
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, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
goto reject;
}
UPDATE_STATE(reply);
RDEBUG("The 'authenticate' section returned %s - not sending a response",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
fr_assert(state->send != NULL);
return state->send(p_result, mctx, request);
UPDATE_STATE(reply);
RDEBUG("The 'accounting' section returned %s - not sending a response",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
fr_assert(state->send != NULL);
return state->send(p_result, mctx, request);
if (request->reply->code == FR_RADIUS_CODE_DO_NOT_RESPOND) {
RDEBUG("The 'recv Accounting-Request' section returned %s - not sending a response",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
send_reply:
fr_assert(state->send != NULL);
*/
if (request->reply->code == FR_TACACS_CODE_AUTH_REPLY_FAIL) {
RDEBUG("The 'recv Authentication-Start' section returned %s - rejecting the request",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
send_reply:
UPDATE_STATE(reply);
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, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
reject:
request->reply->code = FR_TACACS_CODE_AUTH_REPLY_FAIL;
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, fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
goto reject;
}
UPDATE_STATE(reply);
RDEBUG("The 'accounting' section returned %s - not sending a response",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
fr_assert(state->send != NULL);
return state->send(p_result, mctx, request);
if (request->reply->code == FR_RADIUS_CODE_DO_NOT_RESPOND) {
RDEBUG("The 'recv Access-Request' section returned %s - not sending a response",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
send_reply:
fr_assert(state->send != NULL);
UPDATE_STATE(reply);
RDEBUG("The 'authenticate' section returned %s - not sending a response",
- fr_table_str_by_value(rcode_table, rcode, "???"));
+ fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
fr_assert(state->send != NULL);
return state->send(p_result, mctx, request);
if (!fr_dns_packet_ok(data, data_len, false, &reason)) {
fail:
fr_strerror_printf("DNS packet malformed - %s",
- fr_table_str_by_value(reason_fail_table, reason, "???"));
+ fr_table_str_by_value(reason_fail_table, reason, "<INVALID>"));
return -1;
}
}