]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use process module packet type attribute rather than looking a up fixed name
authorNick Porter <nick@portercomputing.co.uk>
Wed, 28 Jan 2026 10:21:29 +0000 (10:21 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 28 Jan 2026 10:26:42 +0000 (10:26 +0000)
src/lib/unlang/call.c

index 320948351bf3dbe6876e89e7cf882a9a2bbd7d66..dec7f2c1366c04d484d0f1950643af1c85ee94c4 100644 (file)
@@ -161,7 +161,7 @@ unlang_action_t unlang_call_push(unlang_result_t *p_result, request_t *request,
                return UNLANG_ACTION_FAIL;
        }
 
-       attr_packet_type = fr_dict_attr_by_name(NULL, fr_dict_root(dict), "Packet-Type");
+       attr_packet_type = virtual_server_packet_type_by_cs(server_cs);
        if (!attr_packet_type) {
                REDEBUG("No Packet-Type attribute available");
                return UNLANG_ACTION_FAIL;