]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Another instance of hard coded "Packet-Type"
authorNick Porter <nick@portercomputing.co.uk>
Wed, 28 Jan 2026 11:23:01 +0000 (11:23 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 28 Jan 2026 11:23:22 +0000 (11:23 +0000)
src/lib/unlang/call.c

index dec7f2c1366c04d484d0f1950643af1c85ee94c4..fd632af8d28d6840099a94a3d3028c2052347405 100644 (file)
@@ -288,7 +288,7 @@ static unlang_t *unlang_compile_call(unlang_t *parent, unlang_compile_ctx_t *unl
                return NULL;
        }
 
-       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) {
                cf_log_err(cs, "Cannot call server %s with namespace '%s' - it has no Packet-Type attribute",
                           server, fr_dict_root(dict)->name);