]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set attr_packet_type
authorAlan T. DeKok <aland@freeradius.org>
Fri, 27 Dec 2024 13:35:21 +0000 (08:35 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 27 Dec 2024 13:35:21 +0000 (08:35 -0500)
so that we get names out of the packet codes

src/modules/rlm_radius/bio.c

index e422bb37b8132f9ef080e54a50eedcb2d194285c..de810b392c979ba1d1256ec7cda7d0e3d11fbeda 100644 (file)
@@ -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);