]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
internal: Fix failing test
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 28 Mar 2020 23:26:30 +0000 (17:26 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 28 Mar 2020 23:26:30 +0000 (17:26 -0600)
We don't automatically aggregate TLVs.

src/protocols/internal/encode.c
src/tests/unit/protocols/internal/encode.txt

index 8d85dd9d1d0a00d5894cb5ec00c53aef8010209c..f733ece86051b4ae924c4439ec494f33d767611c 100644 (file)
@@ -185,7 +185,7 @@ static ssize_t internal_encode(uint8_t *out, size_t outlen,
                                FR_PROTO_STACK_PRINT(da_stack, depth);
 
                                slen = internal_encode(p, LEAVE_ROOM_FOR_LEN(end, p),
-                                                             da_stack, depth + 1, cursor, encoder_ctx);
+                                                      da_stack, depth + 1, cursor, encoder_ctx);
                                if (slen < 0) return slen;
                                p += slen;
                        }
index caa0493249ad30cb1bb6c1ec1d460ea242bd4c71..d4b5198bb6bb4eece512b220dfcb1d08e1f572d3 100644 (file)
@@ -10,4 +10,4 @@ encode-pair User-Name = "0123456789012345678901234567890123456789012345678901234
 match 06 01 01 2c 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39
 
 encode-pair Unit-TLV-Integer = 1, Unit-TLV-Integer = 2
-match f1 0f f3 01 06 00 00 00 01 01 06 00 00 00 02
+match 00 f1 0a 00 f3 07 02 01 04 00 00 00 01 00 f1 0a 00 f3 07 02 01 04 00 00 00 02