When we're rearranging the entries, we want to find entries which
are exact matches. We don't want to do prefix lookups.
goto error;
}
- user_list = fr_htrie_find(tree, &search_list);
-
+ /*
+ * Find an exact match, especially for patricia tries.
+ */
+ user_list = fr_htrie_match(tree, &search_list);
if (!user_list) {
user_list = talloc_zero(ctx, PAIR_LIST_LIST);
pairlist_list_init(user_list);
Reply-Message := "10/8 subnet"
10.1.0.0/16 Password.Cleartext == "hello"
- Reply-Message := "2nd 10.1/16 subnet"
+ Reply-Message += "2nd 10.1/16 subnet"
subnet
-if (&reply.Reply-Message != '10.1/16 subnet') {
+if (&reply.Reply-Message[0] != '10.1/16 subnet') {
test_fail
} else {
test_pass
}
+if (&reply.Reply-Message[1] != "2nd 10.1/16 subnet") {
+ test_fail
+} else {
+ test_pass
+}
+
+
update request {
&FreeRADIUS-Client-IP-Prefix := 10.2.3.4/32
}
subnet
-if (&reply.Reply-Message != "2nd 10.1/16 subnet") {
- test_fail
-} else {
- test_pass
-}
-
update request {
&FreeRADIUS-Client-IP-Prefix := 192.168.1.1/32
}