Skip to content

Commit

Permalink
Return reply packet type, not rcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Feb 21, 2025
1 parent c891ef1 commit d19e845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_radius/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2606,15 +2606,15 @@ static int8_t home_server_cmp(void const *one, void const *two)

static xlat_action_t xlat_sendto_resume(TALLOC_CTX *ctx, fr_dcursor_t *out,
xlat_ctx_t const *xctx,
UNUSED request_t *request, UNUSED fr_value_box_list_t *in)
request_t *request, UNUSED fr_value_box_list_t *in)
{
bio_request_t *u = talloc_get_type_abort(xctx->rctx, bio_request_t);
fr_value_box_t *dst;

if (u->rcode == RLM_MODULE_FAIL) return XLAT_ACTION_FAIL;

MEM(dst = fr_value_box_alloc(ctx, FR_TYPE_UINT32, attr_packet_type));
dst->vb_uint32 = u->rcode;
dst->vb_uint32 = request->reply->code;

fr_dcursor_append(out, dst);

Expand Down

0 comments on commit d19e845

Please sign in to comment.