]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
make TTLS use flat or nested attributes
authorJorge Pereira <jpereira@freeradius.org>
Fri, 26 May 2023 01:54:26 +0000 (22:54 -0300)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 29 May 2023 21:02:48 +0000 (16:02 -0500)
src/process/ttls/base.c

index b491d86866d033163d9fcdcb47790a618ffe2500..2285fefe524a8e9086f7ba70a6c9be81b8265e28 100644 (file)
@@ -619,7 +619,7 @@ RESUME(protocol_error)
        /*
         *      https://tools.ietf.org/html/rfc7930#section-4
         */
-       vp = fr_pair_find_by_da(&request->reply_pairs, NULL, attr_original_packet_code);
+       vp = fr_pair_find_by_da_nested(&request->reply_pairs, NULL, attr_original_packet_code);
        if (!vp) {
                vp = fr_pair_afrom_da(request->reply_ctx, attr_original_packet_code);
                if (vp) {