From: Alan T. DeKok Date: Fri, 27 Dec 2024 13:35:21 +0000 (-0500) Subject: set attr_packet_type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f08f0d57cfc1d896bc7395bda494f92f0df9d47d;p=thirdparty%2Ffreeradius-server.git set attr_packet_type so that we get names out of the packet codes --- diff --git a/src/modules/rlm_radius/bio.c b/src/modules/rlm_radius/bio.c index e422bb37b81..de810b392c9 100644 --- a/src/modules/rlm_radius/bio.c +++ b/src/modules/rlm_radius/bio.c @@ -2598,7 +2598,7 @@ static xlat_action_t xlat_sendto_resume(TALLOC_CTX *ctx, fr_dcursor_t *out, if (u->rcode == RLM_MODULE_FAIL) return XLAT_ACTION_FAIL; - MEM(dst = fr_value_box_alloc(ctx, FR_TYPE_UINT32, NULL)); /* @todo - attr for rcode? */ + MEM(dst = fr_value_box_alloc(ctx, FR_TYPE_UINT32, attr_packet_type)); dst->vb_uint32 = u->rcode; fr_dcursor_append(out, dst);