]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
explicitly encode all of the suboptions
authorAlan T. DeKok <aland@freeradius.org>
Tue, 12 Sep 2023 21:11:40 +0000 (17:11 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 12 Sep 2023 21:11:40 +0000 (17:11 -0400)
We may want to revisit the behavior of &foo.[*].  Does it mean
only that level, or all children?

src/tests/keywords/xlat-dhcpv4

index 3ec811659a44509d5a601076127929441c081b52..d261d00cc7cc3706c81d09fdea0f3afb5b2255c5 100644 (file)
@@ -17,7 +17,10 @@ if !(&Relay-Agent-Information.Remote-Id == 0x010203040506) {
        test_fail
 }
 
-&Tmp-Octets-1 := %(dhcpv4.encode:&request.[*])
+#
+#  Encode all of the Relay-Agent-Information suboptions
+#
+&Tmp-Octets-1 := %(dhcpv4.encode:&request.Relay-Agent-Information.[*])
 
 if !(&Tmp-Octets-1 == 0x520d0103abcdef0206010203040506) {
        test_fail